View Single Post
Join Date: Jul 2004
Posts: 234
Reputation: PoA is an unknown quantity at this point 
Solved Threads: 8
PoA PoA is offline Offline
Posting Whiz in Training

Re: I need some help with a php table

 
0
  #2
Jul 30th, 2004
[PHP]
<?php
echo "<table>";
$query = mysql_query("SELECT col1, col2 FROM example");
while(list($col1, $col2)) = mysql_fetch_row($query)){
echo "
<tr>
<td>$col1</td>
<td>$col2</td>
</tr>";
}
echo "</table>";
?>
[/PHP]

Hope this is what you want
Reply With Quote