Page 1 of 1

Menu navigation

Posted: Fri Mar 28, 2003 4:00 am
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.

Posted: Fri Mar 28, 2003 4:42 am
by ckuipers
U can always put the links in the DB as well.

That's the most straight forward option I can think of.

Posted: Fri Mar 28, 2003 4:58 am
by minds_gifts
with out putting the links in the table, is there any other alternative???

Many thanks

Posted: Fri Mar 28, 2003 6:46 am
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.