I'm trying to create a dynamic dropdown menu that populates by using Mysql and generates a dynamic link. I'm kind of new to both PHP and Mysql but I've got the menu working however I haven“t been able to insert children to the menu this is the code I have so far I've tried dozens of tutorials but none of them seem to work I would really appreciate your help
Thanks Again!
<?php
include_once('dbcon.php');
$menuid = $_GET['id'];
$menu_sql = "SELECT * FROM dyn_menu";
$menu_query = mysql_query($menu_sql);
$rsmenu = mysql_fetch_assoc($menu_query);
do {
?>
<li><a href="../ambiental.php?menuID=<?php echo $rsmenu['id'];?> "><?php echo
$rsmenu ['label'];?></a></li>
<?php
}
while ($rsmenu = mysql_fetch_assoc($menu_query));
?>
Originally asked by: jcferrans on Stack Overflow


Answers