PHP Classes

File: dbconfig.php

Recommend this page to a friend!
  Classes of Ahmad Samiei  >  Mysqli Essential DB Class  >  dbconfig.php  >  Download  
File: dbconfig.php
Role: Configuration script
Content type: text/plain
Description: Db access configuration
Class: Mysqli Essential DB Class
MySQL database access wrapper using MySQLi
Author: By
Last change:
Date: 6 years ago
Size: 944 bytes


Class file image Download
 Mysqli Essential DB Class
 Version 1.0 Essential
 Copyright (C) 2010 Ahmad Samiei
 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

    // 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