raptor30506090 Posted April 15, 2012 Share Posted April 15, 2012 i have a menu home id1 about id2 gallery id3 and so on with drop downs sub menu home and about are normal text pages but gallery is were the drop down is when i select gallery it shows empty connent page how do i make it do nothing just an id for the sub menu any help would be great Quote Link to comment https://forums.phpfreaks.com/topic/260986-question-menu/ Share on other sites More sharing options...
raptor30506090 Posted April 15, 2012 Author Share Posted April 15, 2012 Here the php if this helps $menu = mysql_query("SELECT * FROM main_nav ORDER BY orderTO"); while($m = mysql_fetch_assoc($menu)){ $id = $m['mainNav_ID']; $M_menu = $m['mainNavName']; ?> <ul> <li><a href="index.php?id=<?php echo $id;?>"><?php echo $M_menu; ?></a> <ul> <?php $Submenu = mysql_query("SELECT * FROM sub_nav WHERE mainNav_ID= '$id'"); while($sub = mysql_fetch_assoc($Submenu)){ ?> <li><a href="sub.php?subid=<?php echo $sub['subNav_ID'];?>"><?php echo $sub['subNavName'];?></a></li> <?php } ?> </li></ul></ul> <?php } ?> Quote Link to comment https://forums.phpfreaks.com/topic/260986-question-menu/#findComment-1337555 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.