Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:24

Milonic menu and Mysql


Poster: Roadkingrob
Dated: Wednesday November 23 2005 - 18:37:01 GMT

I'm trying to use the Mysql as listed in the Extra Folder. but somehow I don't get the menu working. The data is in the Mysql database and it is accessable but I dont have a menu. Which files do I need and were do I put them to make it work. What do I put in my HTML page to make it work so that the menu information is read from the MySql database file.
I dont have a url available becaus i dont have it working yet
I need some help here


Poster: Ruth
Dated: Wednesday November 23 2005 - 19:47:39 GMT

Here's a demo of the mysql menu, I think this is php

Ruth


Poster: Roadkingrob
Dated: Wednesday November 23 2005 - 20:14:42 GMT

Ruth wrote:
Here's a demo of the mysql menu, I think this is php

Ruth


Thanks so far

I checked the source and it looks to me the file uses the two menu files mmenuns4 and mmenudom to create the menus. I downloaden the php_mysql_datamenus.zip and put them in : http://www.bridge-chapter.nl/newweb/ . It connects propperly (after modification ofcourse) but no menu visible. The file (or PHP code)I need for this is not include in the ZIP file.
Most likely I'm doing something wrong but I haven't a clue what

Any suggestions

Rob


Poster: Ruth
Dated: Wednesday November 23 2005 - 22:12:58 GMT

I don't know anything about php or mysql. The call for the menu files should be

Code:
<SCRIPT language="JavaScript" src="http://www.yourwebsite.com/milonic_src.js" type="text/javascript"></SCRIPT>   
<script   language="JavaScript">

if(ns4)_d.write("<scr"+"ipt language=JavaScript src=http://www.yourwebsite.com/mmenuns4.js><\/scr"+"ipt>");      
  else _d.write("<scr"+"ipt language=JavaScript src=http://www.yourwebsite.com/mmenudom.js><\/scr"+"ipt>");
</script>


where yourwebsite.com is the url for your own website. You need to have the 3 program files on the site and you need to call them, it is those files which 'read' the data file and put the menu on the page.

Ruth


Poster: Andy
Dated: Friday November 25 2005 - 12:55:37 GMT

The code that Ruth descibes above should be:

Code:
<SCRIPT language="JavaScript" src="http://www.bridge-chapter.nl/newweb/milonic_src.js" type="text/javascript"></SCRIPT>   
<script   language="JavaScript">

if(ns4)_d.write("<scr"+"ipt language=JavaScript src=http://www.bridge-chapter.nl/newweb/mmenuns4.js><\/scr"+"ipt>");      
  else _d.write("<scr"+"ipt language=JavaScript src=http://www.bridge-chapter.nl/newweb/mmenudom.js><\/scr"+"ipt>");
</script>

Using MYSQL


Poster: Roadkingrob
Dated: Thursday December 1 2005 - 13:23:48 GMT

This shows the menu but the data is read from the menu file en not my MySql database. I slowly getting there using the PHP files for MySql in EXTRAS but Im not there yet.

I cannot find a step by step description on which file to use and which files not, which to edit etc.



Andy wrote:
The code that Ruth descibes above should be:

Code:
<SCRIPT language="JavaScript" src="http://www.bridge-chapter.nl/newweb/milonic_src.js" type="text/javascript"></SCRIPT>   
<script   language="JavaScript">

if(ns4)_d.write("<scr"+"ipt language=JavaScript src=http://www.bridge-chapter.nl/newweb/mmenuns4.js><\/scr"+"ipt>");      
  else _d.write("<scr"+"ipt language=JavaScript src=http://www.bridge-chapter.nl/newweb/mmenudom.js><\/scr"+"ipt>");
</script>

Align in mysgl table


Poster: Roadkingrob
Dated: Tuesday January 31 2006 - 15:59:18 GMT

Thanks for solving the PHP MYSQL problem I encountered. It now works very wel. Now I would like to chapnge the position of the menu. I added the "align" option in mysql table mm_styles and entered center to change the position. that does not work. I tried the example menu "offset" but then the MYSQL menu table is not read.

Olease advise

sincerely

Rob


Poster: Ruth
Dated: Tuesday January 31 2006 - 16:55:11 GMT

Hi,

Align is to align the text in the items. Screenposition is for positioning the menu. Take a look at the Menu Properties Quick Reference Guide screenpostion for more information.

Ruth