Server IP : 184.154.167.98 / Your IP : 3.146.206.87 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/www/oficios/sis/layout/ |
Upload File : |
<div id="menu"> <?php require('includes/config.php'); $menu_sql = mysql_query("SELECT id,nombre FROM menu"); { echo ' <ul> <li> <a href="'.$menu[0].'">'.$menu[1].'</a>'; $submenu_sql = mysql_query("SELECT id,nombre,menu_id,cont_item FROM submenu WHERE menu_id = '".$menu[0]."'"); if(mysql_num_rows($submenu_sql) > 0) { echo '<div> <ul>'; while($submenu = mysql_fetch_row($submenu_sql)) { echo '<li><a href="'.$submenu[0].'">'.$submenu[1].' ('.$submenu[3].')</a></li>'; } mysql_free_result($submenu_sql); echo '</ul> </div>'; } echo '</li> </ul>'; } mysql_free_result($menu_sql); ?> </div>