Dynamic PHP tree menu related with database

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
dalamtinka
Forum Newbie
Posts: 1
Joined: Sun Sep 24, 2006 11:47 am

Dynamic PHP tree menu related with database

Post by dalamtinka »

I'm new in PHP so I have question.
I have to make half static, half dynamic PHP tree menu. So how can I get data from database (names of hotels that will be dynamic PHP links and put it into the third level in menu).

For example I have 3 levels of links.
First level Accomodation, then second level Hotels and third level I want to be names of hotels which I have in database (for example, hotel1, hotel2, hotel3) and those have to be dynamic links which will give me detailed view for each hotel when I click on hotel I want to see.

Please help, it's very important to me to do this as soon as I can!!!

Thank you!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Likely the answer would be fairly code specific, so if you would post your code, we may be able to better guide to toward an answer.
Post Reply