just use something like this in your while-loop: if ($counter % 5 == 0) { print "<br>"; }
Greets, Edward ----- Original Message ----- From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 11, 2002 5:08 PM Subject: Re: [PHP] 5 Records per line > On Tuesday 12 March 2002 00:03, Thomas Edison Jr. wrote: > > Hi, > > > > I would like to display 5 records per line on the > > Results page. Not seperated by a comma, but just > > seperated by Space. How can i do that? > > Pseudo code: > > connect to db > make query > while results { > display 5 results separated by a space > } > > > If you have some actual code, post it so we can build on it or correct it. If > you don't know where to start then at least write some code to connect to > your db. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > > /* > Twenty years of romance make a woman look like a ruin; but twenty years of > marriage make her something like a public building. > -- Oscar Wilde > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php