PHP Nested Loop Tutorial
I
guess since you are looking for a nested loop "solution" you
already familiar with a simple database structure used in this method.
Create a recordset named "menu" to show only PARENT menu items which have SID value "0": Insert dynamic text for MENU name field. Create another
Recordset and name it "submenu". Create a
second table under the first one, insert the Dynamic text from SUBMENU
"menuname" Recordset and apply REPEAT REGION to both
tables. Now go to
CODE VIEW and place the Recordset "submenu" under the closing
</table> tag of the parent menu item table. This procedure
could me much "cleaner" but i won't complicate things. Now we will
loop the second table. Next we are going to....hey, thats it!!!
|
Comments
re this tutorial
Tried it and i've made some error!
What would be really useful is a link to the compleat page of code so I can compare and find my mistake.
Also a tripple nested tutorial eg foods/nonfoods, fruits/veg. apples etc.
this tutorial has slight error
Has anyone been successful in making this tutorial work?
As an absolute beginer I have also tried and not been able to make this tutorial work. The first comment raise doubts and I have tried to understand the alternatives.
If someone could revisit this tutorial and provide a known script that does work it would be appreciated.
Thanks in anticipation
no code only pictures?
Pretty poor, due to no real code and only pictures, nobody can get this to work the way you have explained.
Post your entire page, love to see what that looks like?
Cheers
You must me logged in to write a comment.