Jump to content

DHTML Vertical Menu + Meu items can load from MySql Database


aniesh82

Recommended Posts

 

Hello Friends,

 

I am on the search of the DHTML menu which looks like the one in the following page:

 

http://simplythebest.net/scripts/DHTML_scripts/dhtml_script_114a.html

 

This menu works well but I need to load the menu items from the database, so I can configure the menu items, sub menu items etc.

 

Could someone help me to find a menu or any site which offers similar package?

 

Thanks & Regards,

PHP Developer,

India

<?php
# connect to your database

$sql = "SELECT * FROM `list_cats` ORDER BY id";
$res = mysql_query($sql) or die(mysql_error());

while($row = mysql_fetch_assoc($res)){
	echo "<div id=\"main_link\">{$row['name']}";
		$sql2 = "SELECT * FROM `links` WHERE `cat`='{$row['id']}'";
		$res2 = mysql_query($sql2) or die(mysql_error());
		while($row2 = mysql_fetch_assoc($res2)){
			echo "<div id=\"link\"><a href=\"/you/{$row2['link']}\"></div>\n";
		}
	echo "</div>\n";
}
?>

 

easily modifiable.

 

Hello kratsg && mgallforever,

 

Thanks for your suggestions.

 

The sample menu link which I have included in the post specify the positions statically.. Please have a look on the instruction, especially from No.7 "Define the direction of the menus, their positioning and their DIV size in this section of the script: ".....

 

It takes lot of time to modify this to a dynamic one..

 

Could someone suggests any site which allows to download dynamic Vertical menu which looks similar to the menu in the page .http://simplythebest.net/scripts/DHTML_scripts/dhtml_script_114a.html ??

 

I am on the search of a menu which loads the menu items from database.

 

Thanks & Regards,

PHP Developer,

India

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.