Re: 5 Records per line
| From: | Edward van Bilderbeek - Bean IT | Date: | Mon, 11 Mar 2002 16:09:57 +0000 |
| Subject: | Re: 5 Records per line | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88023@lists.php.net to get a copy of this message | ||
just use something like this in your while-loop:
if ($counter % 5 == 0) {
print "<br>";
}
Greets,
Edward
----- Original Message -----
From: "Jason Wong" <php-general@gremlins.com.hk>
To: <php-general@lists.php.net>
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
>