Milonic menu and Mysql

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Roadkingrob
Beginner
Beginner
Posts: 5
Joined: Tue Nov 22, 2005 3:08 pm
Location: Apeldoorn
Contact:

Milonic menu and Mysql

Post by Roadkingrob »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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

Ruth
Roadkingrob
Beginner
Beginner
Posts: 5
Joined: Tue Nov 22, 2005 3:08 pm
Location: Apeldoorn
Contact:

Post by Roadkingrob »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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

Code: Select all

<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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

The code that Ruth descibes above should be:

Code: Select all

<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>
Roadkingrob
Beginner
Beginner
Posts: 5
Joined: Tue Nov 22, 2005 3:08 pm
Location: Apeldoorn
Contact:

Using MYSQL

Post by Roadkingrob »

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: Select all

<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>
Roadkingrob
Beginner
Beginner
Posts: 5
Joined: Tue Nov 22, 2005 3:08 pm
Location: Apeldoorn
Contact:

Align in mysgl table

Post by Roadkingrob »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
Post Reply