I want to make java menus but link them with my database in mysql , before that i make only static drop down menus. This time i need a dynamic menus that get the links from database. How can i do that .............. ? Thx in advance
$q = mysql_query("SELECT * FROM table"); while($row = mysql_fetch_array($q)) { $opt .= "<option value='{$row['field1']}'>{$row['field2']}</option>"; } echo "<select name='list'>$opt</select>"; PHP: Just change the selection list with your javascript list. That should work.