Drawing table by while

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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     |
------------------------------
.
.
.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux