i have a table with 14 columns and 4 rows. i know how to echo a result with a table from a query but how do i input results into a table thats already there? results go into cell 1, cell 2, cell 3 etc
been having trouble on this. table id= stack
its pretty long but i'll post the example so i can relate it to my code..
mysql_connect("localhost", "Master", "password;
mysql_select_db("Ustack");
$report = mysql_query("SELECT * FROM Reply ")or die (mysql_error());
while($row = mysql_fetch_array( $report)) {
$id = $row['id'];
}
<table border="0">
<tr>
<td width="70" height="70"> </td>
<td width="70" height="70"> </td>
<td width="70" height="70"> </td>
<td width="70" height="70"> </td>
<td width="70" height="70"> </td>
<td width="70" height="70"> </td>
<td width="70" height="70"> </td>
<td width="70" height="70"> </td>
<td width="70" height="70"> </td>
<td width="70" height="70"> </td>
<td width="70" height="70"> </td>
<td width="70" height="70"> </td>
<td width="70" height="70"> </td>
<td width="70" height="70"> </td>
</tr>
</table>
so how do i get $id to go to cell 1, cell 2, cell 3 etc and fill up the table. its easy when you echo it into a table but i need the table there before.