PHP Classes

File: setmenu/setmenu.php

Recommend this page to a friend!
  Classes of MarPlo  >  Online PHP Menu Builder Class  >  setmenu/setmenu.php  >  Download  
File: setmenu/setmenu.php
Role: Example script
Content type: text/plain
Description: PHP code that uses the BuildMenu class
Class: Online PHP Menu Builder Class
Create hierarchic menus stored in a MySQL database
Author: By
Last change:
Date: 3 years ago
Size: 653 bytes


Class file image Download
// Script Menu -

// HERE add your Admin data, to can save the menu
define('ADMNAME', 'name');
define('ADMPASS', 'password');

// HERE add your data for connecting to MySQL database (MySQL server, user, password, database name)
define('DBHOST', 'localhost');
define('DBUSER', 'root');
define('DBPASS', 'passdb');
define('DBNAME', 'dbname');

/* From Here no need to modify */

if(!headers_sent()) header('Content-type: text/html; charset=utf-8'); // header for utf-8

// Include and uses the class that gets and saves menu data
$obCtg = new buildMenu();