Jump to content

drop down navagation


m0rthden

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.