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

Link to comment
Share on other sites

<?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.

Link to comment
Share on other sites

 

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.