I have the following code below. The table is displaying directly underneath each other as apposed to the normal way beside each other. I would like the table to display as a normal table but with the below syntax each column is displaying under one another.
The table should look like this:
Sky 1 | Sky 2 | Sky 3
sky1result sky2result sky3result
sky1result sky2result sky3result
<?php
$f = fopen("/home/app/sky1result.txt", "r");
echo "<table>";
echo "<tr><th>Sky 1</th></tr>";
while(!feof($f)) {
echo "<tr><td>";
echo fgets($f),"</td></tr>";
}
fclose($f);
$f1 = fopen("/home/app/sky2result.txt", "r");
echo "<tr><th>Sky 2</th></tr>";
while(!feof($f1)) {
echo "<tr><td>";
echo fgets($f1),"</td></tr>";
}
fclose($f1);
$f2 = fopen("/home/app/sky3result.txt", "r");
echo "<tr><th>Sky 3</th></tr>";
while(!feof($f2)) {
echo "<tr><td>";
echo fgets($f2),"</td></tr>";
}
fclose($f2);
echo "</table>";
?>
<tr><td></td></tr>so each will definitely result in a new row. Please also show an example of what output you are trying to achieve.