Re: I need the PHP code to display in the proper place in a table
You want to use a for loop and arrays.
in the form of
$data = array()
$getData = ("SELECT * FROM table")
while($row = @mysql_fetch_array($getData))
{
$data[$row[id]] = $row[columnName];
}
for($i = 0; $i <= (sizeof($data)-1); $i++)
{
echo "<table>";
echo "\n<tr><td>".$data[$i]."</td></tr>";
echo "</table>";
}
|