Nested Templates/Querying
| From: | Jonathan Chum | Date: | Wed, 12 Dec 2001 12:00:24 +0000 |
| Subject: | Nested Templates/Querying | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2267@lists.php.net to get a copy of this message | ||
The problem I'm having now is trying to understand nested querying. I've
looked at the doc, but wasn't unable to comprehend the example on nested
sections. I was curious on the array structure in PHP.
What I'm trying todo is print our categories which would then print our the
forums related to that category. This is the array I've built:
$board = array(categories => array(
"Category 1" => array("board" => "Board 1", "board"
=> "Board 2"),
"Category 2" => array("board" => "Board 3")
));
It should result like
Category 1
-Board 1
-Board 2
Category 2
-Board 3
Could some light be shed on this or some example of the PHP array structure
as it ties with the example in the doc? Thanks.
Regards,
Jonathan Chum
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A I S M e d i a , I n c .
"We Build eBusinesses"
3541 Habersham at Northlake, Building E
Tucker, GA 30084
Tel: 800.784.0919, Ext 111 / Fax: 678.382.2471
http://www.aismedia.com / jchum@aismedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~