Very slick Richard.
>>$i = 0;
>>while ($myrow = mysql_fetch_array($sql)) {
>> if (++$i % 5 == 0) echo '';
>> ...
>>
>>
>>Note: if used repeatedly do not increment the $i again in the loop.
>>
>>HTH
>>Richard
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
>
> >Hiya,
> >
> >How can i draw a new AFTER FIVE in the following loop
> >
> >(i want to echo the records in 5 columns width tables whatever the number
> of
> >records will be fetched)
> >
> >..
> >echo '';
> >
> >while ($myrow = mysql_fetch_array($sql))
> >{
> >echo $myrow[0];
> >}
> >echo '
>Hiya,
>
>How can i draw a new AFTER FIVE in the following loop
>
>(i want to echo the records in 5 columns width tables whatever the number
of
>records will be fetched)
>
>..
>echo '';
>
>while ($myrow = mysql_fetch_array($sql))
>{
>echo $myrow[0];
>}
>echo '';
>
>
>regards
$i = 1;
echo '' .
* Thus wrote nabil ([EMAIL PROTECTED]):
> Hiya,
>
> How can i draw a new AFTER FIVE in the following loop
>
> (i want to echo the records in 5 columns width tables whatever the number of
> records will be fetched)
>
> ..
> echo '';
>
> while ($myrow = mysql_fetch_array($sql))
> {
> echo $myr
$i = 0;
while ($myrow = mysql_fetch_array($sql)) {
if (++$i % 5 == 0) echo '';
...
Note: if used repeatedly do not increment the $i again in the loop.
HTH
Richard
-Original Message-
From: nabil
Sent: Wednesday, May 26, 2004, 2:28:28 PM
> Hiya,
> How can i draw a new
echo '';
echo '';
while ($myrow = mysql_fetch_array($sql))
{
echo '';
echo $myrow[0];
echo '';
}
echo '';
echo '';
You did say you wanted 5 COLUMNS, not rows, in your table... right?
"nabil" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hiya,
>
> How can i draw a new AFTER F
6 matches
Mail list logo