more than one navbar php-mysql driven at the same page

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
thomass
Beginner
Beginner
Posts: 1
Joined: Wed Aug 08, 2007 1:56 pm

more than one navbar php-mysql driven at the same page

Post by thomass »

I want to put three navbars php-mysql driven at the same page.

This:

Code: Select all

<?php

	include("mm_config_topR.php");  // This file contains all of the user editable parameters
	include("mm_phpmenu_topR.php"); // This is the file containing all of the PHP functions

	buildMySQLMenu(1); // This line builds the menu from MySQL data tables.
?>

<?php

	include("mm_config.php");  // This file contains all of the user editable parameters
	include("mm_phpmenu.php"); // This is the file containing all of the PHP functions

	buildMySQLMenu(1); // This line builds the menu from MySQL data tables.

?>
won't work.

Only one will appear, the other has an error-message:
Fatal error: Cannot redeclare class mmenustyle in mm_phpmenu.php on line 16.

Does anyone know how to fix that?

Thx, Thomas
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I have posted this to Milonic. I do not do php, but if you know how to do it, would you maybe have to make those two <? you have into only one, then there would be only one call for that file giving the error?

I really don't know it's only a suggestion.

Ruth
Post Reply