Drawing table by while
| From: | nabil | Date: | Wed, 26 May 2004 12:27:40 +0000 |
| Subject: | Drawing table by while | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-34560@lists.php.net to get a copy of this message | ||
Hiya,
How can i draw a new <tr> AFTER FIVE <td> in the following loop
(i want to echo the records in 5 columns width tables whatever the number of
records will be fetched)
..
echo '<table>';
while ($myrow = mysql_fetch_array($sql))
{
echo $myrow[0];
}
echo '</table>';
------------------------------
| x | y | z | o |
------------------------------
| f | q | h | hj |
------------------------------
.
.
.