tekcap Posted February 22, 2007 Share Posted February 22, 2007 hello main_page.php • Display News in downwards fashion • The right_menu.php will run an if statement and if it matches the main_page.php it will display top 10 songs from all genres. The right_menu.php is my right menu bar which always displays a top 10 list It always changes depends which genre im browsing My question is how would I run a check? Do I make a huge if else statement which tests every page on mywebsite and displays the appropriate top ten list? Link to comment https://forums.phpfreaks.com/topic/39581-dynamic-menu-content/ Share on other sites More sharing options...
skali Posted February 22, 2007 Share Posted February 22, 2007 Send genre id on each page $current_genre = $_GET['genre']; //query db for this genre and display record accordingly Link to comment https://forums.phpfreaks.com/topic/39581-dynamic-menu-content/#findComment-190993 Share on other sites More sharing options...
tekcap Posted February 22, 2007 Author Share Posted February 22, 2007 Im still a bit confused. The top ten list will be the same on every page EXCEPT for the actual genre related pages. If I click on a certain genre and any page related to it my top ten list will reflect that genre. Where would I get the genre id from and what would be the genre id if im not looking at a specific genre page. Link to comment https://forums.phpfreaks.com/topic/39581-dynamic-menu-content/#findComment-191288 Share on other sites More sharing options...
redarrow Posted February 22, 2007 Share Posted February 22, 2007 what does the link look like when you goto a genre. Link to comment https://forums.phpfreaks.com/topic/39581-dynamic-menu-content/#findComment-191293 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.