Login   Register  
PHP Classes
elePHPant
Icontem

File: setmenu/setmenu.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 1 year ago
Size: 653 bytes
 

Contents

Class file image Download
<?php
// Script Menu - http://coursesweb.net/php-mysql/

// 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
include('class.buildmenu.php');
$obCtg = new buildMenu();