Re: [PHP] dynamic table

2004-05-26 Thread Daniel Clark
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:

Re: [PHP] dynamic table

2004-05-26 Thread adrian murphy
> > >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 '

Re: [PHP] dynamic table

2004-05-26 Thread adrian murphy
>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 '' .

Re: [PHP] dynamic table

2004-05-26 Thread Curt Zirzow
* 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

Re: [PHP] dynamic table

2004-05-26 Thread Richard Harb
$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

Re: [PHP] dynamic table

2004-05-26 Thread Steve Douville
= mysql_fetch_array($sql)) > { > echo $myrow[0]; > } > echo ''; > > > regards > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > - Original Message - From: "nabil&quo

[PHP] dynamic table

2004-05-26 Thread nabil
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 -- PHP General Mailing List (http://

[PHP] dynamic table problem

2003-10-03 Thread irinchiang
Hi all: Having some problems right here. Below are a snip my codes: class="Devi" width="15%" align="center" valign="middle">2PE1012 . . . Grey Pink Blue Yellow Cyan What I am trying to do here is to create a table where I can change its cell color by selecting the colors from the