<?php
/*------------------------------------------------------
Mysqli Essential DB Class
Version 1.0 Essential
Copyright (C) 2010 Ahmad Samiei iPixar.com
License: GPL
This is your essential mysqli database class. fast and easy to use
also I share 'Mysqli Advanced DB Class' very soon as possible
enjoy with PHP5
./
..
class.db.php
config.php
------------------------------------------------------*/
// database config
global $dbprefix,$dbname,$dbserver,$dbuname,$dbpasswd,$dberrormsg; // global scope variable
$dbname ='testDB'; // database name
$dbprefix ='pre_'; // tables prefix. also can be empty
$dbserver ='localhost'; // connection server. localhost for default local usage
$dbuname = 'root'; // database username. root for default local usage
$dbpasswd = ''; // database password. null for default local usage
$dberrormsg=''; // db connection error message. unset in develope mode
?>
|