Looping through a result
| From: | Rene Schoenmakers | Date: | Tue, 20 Apr 2004 08:43:51 +0000 |
| Subject: | Looping through a result | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-33965@lists.php.net to get a copy of this message | ||
Hi,
I want to make the following page,
Category 1
Item 1 of category 1
Item 2 of category 1
Item 3 of category 1
Item 4 of category 1
Category 2
Item 1 of category 2
Item 2 of category 2
Item 3 of category 2
Category 3
Item 1 of category 3
Item 2 of category 3
Item 3 of category 3
Item 4 of category 3
Item 4 of category 3,
using PHP and MySQL. Looping through a result is not the problem. But
how do I use a second query while looping through a result and do I have
to use more then 1 table in the database?
Can somebody point me in the right direction?
Tia,
René