A
Anonymous
Guest
Hi,
The script below print a content of the MySQL database. The output print a record in a row and when the record finished it prints the next record below it and etc.
How can I generate an automatic table (separation between the records) so I will receive a nice output.
Thanks.
Script:
if ($rowsFound > 0)
{
while ($row = @ mysql_fetch_array($result))
{
print 'ID: '. $row["ID"]. ' ';
#echo "<br><br>\n";
print 'name: '. $row["name"]. ' ';
# echo "<br><br>\n";
print 'gen: '. $row["gen"]. ' ';
echo "<br><br>\n";
}
}
The script below print a content of the MySQL database. The output print a record in a row and when the record finished it prints the next record below it and etc.
How can I generate an automatic table (separation between the records) so I will receive a nice output.
Thanks.
Script:
if ($rowsFound > 0)
{
while ($row = @ mysql_fetch_array($result))
{
print 'ID: '. $row["ID"]. ' ';
#echo "<br><br>\n";
print 'name: '. $row["name"]. ' ';
# echo "<br><br>\n";
print 'gen: '. $row["gen"]. ' ';
echo "<br><br>\n";
}
}