Hello guys, I'm having this problem and I hope you will help me to get over it.
I have the following database table:
ID Parent_id Title
1 0 Home
2 0 Interactive
3 2 Wallpapers
4 2 Screensavers
5 2 ECards
6 3 JPGs
7 3 BMPs
8 0 Contacts us
WHEN "PARENT_ID" IS EQUAL TO "0" THIS MEANS THAT THE ITEM IS NOT A SUB MENU. The problem is I wanna retreive the field "Title" from that table, and display the result as a site map. The result may look like this:
HOME
INTERACTIVE
-- Wallpapers
---- JPGs
---- BMPs
-- Screensavers
-- ECards
Contact us
NOTE: I need a code to fit any level of sub menus.
I appreciate your co-operation.
I have the following database table:
ID Parent_id Title
1 0 Home
2 0 Interactive
3 2 Wallpapers
4 2 Screensavers
5 2 ECards
6 3 JPGs
7 3 BMPs
8 0 Contacts us
WHEN "PARENT_ID" IS EQUAL TO "0" THIS MEANS THAT THE ITEM IS NOT A SUB MENU. The problem is I wanna retreive the field "Title" from that table, and display the result as a site map. The result may look like this:
HOME
INTERACTIVE
-- Wallpapers
---- JPGs
---- BMPs
-- Screensavers
-- ECards
Contact us
NOTE: I need a code to fit any level of sub menus.
I appreciate your co-operation.