For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > May 2004 > Drawing table by while









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Drawing table by while
Nabil

2004-05-26, 9:34 am

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







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com