PHP Classes

File: mysqli_config.php

Recommend this page to a friend!
  Classes of Julie Duvillier   MySQLi access   mysqli_config.php   Download  
File: mysqli_config.php
Role: Configuration script
Content type: text/plain
Description: config option and login info
Class: MySQLi access
MySQL database access using MySQLi
Author: By
Last change: $option is static
Date: 14 years ago
Size: 737 bytes
 

Contents

Class file image Download
<?php
/*Mysqli_config*/
self::$option['SHOW_EXCEPTIONS']=true; //will show exceptions if true
self::$option['SHOW_MESSAGE']='<p>An error as occur The Administrator has been informed</p>'; //will show this message if SHOW_EXCEPTION=false
self::$option['DIE_ON_EXCEPTION']=false; // will make script die when an exception is caught

self::$option['AUTOCONNECT']=true; //will connect to database when create object


//optional can be set when create object.
$this->login['HOST']='localhost';
$this->login['USER']='root';
$this->login['PASSWORD']='';
$this->login['DATABASE']='perso';
$this->login['TABLE']=false; //table name, optional


?>