Re: dynamic table
| From: | Steve Douville | Date: | Wed, 26 May 2004 13:52:11 +0000 |
| Subject: | Re: dynamic table | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186989@lists.php.net to get a copy of this message | ||
echo '<table>';
echo '<tr>';
while ($myrow = mysql_fetch_array($sql))
{
echo '<td>';
echo $myrow[0];
echo '</td>';
}
echo '</tr>';
echo '</table>';
You did say you wanted 5 COLUMNS, not rows, in your table... right?
"nabil" <nabil.attar@aws-syria.com> wrote in message
news:20040526122837.16868.qmail@pb1.pair.com...
> 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>';
>
>
> regards
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
----- Original Message -----
From: "nabil" <nabil.attar@aws-syria.com>
To: <php-general@lists.php.net>
Sent: Wednesday, May 26, 2004 8:28 AM
Subject: [PHP] dynamic table
> 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>';
>
>
> regards
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>