title: Dynamic Dropdown Menu PHP Mysql
body: <p>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</p>
  
  <p>Thanks Again!</p>
  
  <pre><code>    &lt;?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 {
  ?&gt;
      &lt;li&gt;&lt;a href="../ambiental.php?menuID=&lt;?php echo $rsmenu['id'];?&gt; "&gt;&lt;?php echo        
      $rsmenu ['label'];?&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;?php
  }
  while ($rsmenu = mysql_fetch_assoc($menu_query));
  ?&gt;
  </code></pre>