Dynamic menu

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amir
Forum Contributor
Posts: 287
Joined: Sat Oct 07, 2006 4:28 pm

Dynamic menu

Post by amir »

Hello,

Please have a look of this menu,
http://tutorials.alsacreations.com/dero ... tical.htm#

If you click on 2nd menu, it will display you all the items of 2nd menu, if you click on 3rd menu, it 'll display 3rd ones items and so on.

I want to create this menu as dynamic. I have two DB tables with fields;
1) tbl_states: state_id, state_name
2) tbl_cities: city_id, city_name

I want to create a dynamic menu with states as main items and cities as sub items.
Any help would be greatly appreciated.

TIA!
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

From the General Posting Guidelines:
6. Write your question carefully, think about what you need to achieve and exactly what help you are looking for.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

Take a look here:
http://en.wikipedia.org/wiki/Firefly_%28TV_series%29

I'd like that series brought back. And maybe another movie.

And a pizza.

Thanks.


Seriously though, write some code. If you have problems, troubleshoot them. If you're stuck, ask for help.

I can already tell that you're going to have trouble with that database schema... care to guess why?
amir
Forum Contributor
Posts: 287
Joined: Sat Oct 07, 2006 4:28 pm

Post by amir »

You are right. This was very easy!
Thanks for your sujjestion.
Post Reply