
July 10th, 1999, 09:15 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Hi,
I'd like to output some query results in a table, each result in it's own column and row. Here's an example --
***********************************
IF ($result){
echo "<center><table><tr><td>";
while ($r = mysql_fetch_array($result)) {
$number = $r["stock_number"];
$description = $r["item_description"];
echo "$number<br></td>";
echo "<td>$description<br>";
}
echo "</td></tr></table>";
} else
{
echo "No data.";
*********************************
Except it doesn't work correctly. What is the proper way to accomplish this?
Thanks
|