Menu navigation

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
minds_gifts
Forum Commoner
Posts: 63
Joined: Mon Feb 10, 2003 4:23 am

Menu navigation

Post by minds_gifts »

hi everybody,

in my homepage, i just have two links in the navigation menu - one for movies and the other for cricket teams.they are shown using simple html.
when i click on these links, i show some text and images, fine.
Now, i want these menu links to be shown from the database.
well, i make a place to store all the fileds in the table and retrieve them, no probs!My question is - is that possible to give the links to all the items which i show in the navigation menu in one script???

inkaytown.f2o.org

Ok, this is the simple html which shows on my navi-menu Movies and Cricket teams and each menu field has corresponding page to be displayed.

<a href="./movies/moviesstart.php" target="main"
<p><font face="Arial" size="2">Movies</font></p></a>
<a href="./cricketteams/cricketstart.php" target="main"
<p><font face="Arial" size="2">Cricket Teams</font></p></a>

Now, I want to get those fields from the table.

Select st will get me all those, but how can i give the a href??
In the above html, moviesstart.php is in movies folder and the other one in a different folder.I want to make each menu item in a different folders.

Does my post make any sense???

gimmi all your suggestions.
ckuipers
Forum Commoner
Posts: 61
Joined: Mon Mar 24, 2003 6:10 am

Post by ckuipers »

U can always put the links in the DB as well.

That's the most straight forward option I can think of.
minds_gifts
Forum Commoner
Posts: 63
Joined: Mon Feb 10, 2003 4:23 am

Post by minds_gifts »

with out putting the links in the table, is there any other alternative???

Many thanks
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

I don't know what you're planning exactly, but if you're dealing with static links only there's no need to parse php code or make database queries to achieve something which can be done more optimally with simple html.

Post again if I haven't understood you.
Post Reply