Is it possible to use the menu with PHP function name() { to call the menu files (js)? I am using the PHP_MYSQL solution.
EXAMPLE:
INDEX.PHP
Code: Select all
<?php
function home(){
include('header.php');
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo "<tr><td valign=\"top\">\n";
PAGE CONTENT
echo "</td></tr>\n";
echo "</table>\n";
}
switch ($name) {
default:
home();
break;
}
?>
HEADER.PHP
Code: Select all
<?php
echo "<head>etc\n";
echo "<body>etc\n";
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.
?>
Bugger!! does anyone understand what I mean and can you help?
Thx