m0rthden Posted December 6, 2009 Share Posted December 6, 2009 Im developing a CMS for a friend of mine and his business. Making it easy for him to change information on several pages from an admin area. One of my pressing problems is I want a drop down menu to hold links to sub items. I have the css code for it to work but I cant figure out how to combine the two sections of code. The current nav is setup like so... <? require("sources/connection.php"); $sql = "SELECT name, url, title FROM nav LIMIT 6"; $result = $conn->query($sql) or die(mysqli_error()); if($result){ while($row = $result->fetch_object()){ echo "<li><a href='{$row->url}' title='{$row->title}'>{$row->name}</a></li>"; } } ?> Its it possible for me to create a drop down menu from this? Link to comment https://forums.phpfreaks.com/topic/184196-drop-down-navagation/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.