import menu data from mysql database !!!

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
knackwurst
Beginner
Beginner
Posts: 1
Joined: Fri Apr 01, 2005 3:54 pm

import menu data from mysql database !!!

Post by knackwurst »

:?: I tryed everything. menu_data is allready with php ending but it still doesn't work and the php code gives out

Code: Select all

aI("text=Das TMG;url=www.tmg.oelde.com/tmg_2005/01home/index.php?rubric=home_tmg;target=inhalt;");
aI("text=Verwaltung;url=www.tmg.oelde.com/tmg_2005/01home/index.php?rubric=home_verwaltung;target=inhalt;");
aI("text=Lehrkräfte;url=www.tmg.oelde.com/tmg_2005/01home/index.php?rubric=home_lehrer;target=inhalt;");
aI("text=SV;url=www.tmg.oelde.com/tmg_2005/01home/index.php?rubric=home_sv;target=inhalt;");
aI("text=Schülervertretung;url=www.tmg.oelde.com/tmg_2005/01home/index.php?rubric=home_schülervertretung;target=inhalt;");
aI("text=Förderverein;url=www.tmg.oelde.com/tmg_2005/01home/index.php?rubric=home_foerderverein;target=inhalt;");
aI("text=Ehemalige;url=www.tmg.oelde.com/tmg_2005/01home/index.php?rubric=home_ehemalige;target=inhalt;");
aI("text=Schulprogramm;url=www.tmg.oelde.com/tmg_2005/01home/index.php?rubric=home_programm;target=inhalt;");
aI("text=Presse;url=www.tmg.oelde.com/tmg_2005/01home/index.php?rubric=home_presse;target=inhalt;");
aI("text=Archiv;url=www.tmg.oelde.com/tmg_2005/01home/index.php?rubric=home_archiv;target=inhalt;"); 
what is wrong with my program ? am i even able to use php for importing my menu data?
thx
Tobias N.

P.S.:
i use it like this

Code: Select all

with(milonic=new menuname("home")){
margin=3;
style=vertStyle;
top="offset=2";
<?php include("../test.php");?>
}
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

A search on 'database' will find many topics for you. The Milonic home site is all PHP/mySQL.

A good starting point might be here.
John
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

What is the output from ../test.php ?

If this contains anything other than pure JavaScript it may cause an error.

-- Andy
Post Reply