Login   Register  
PHP Classes
elePHPant
Icontem

File: inc.config.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of JImmy Bo  >  Bobo PHP DB Class  >  inc.config.php  >  Download  
File: inc.config.php
Role: Configuration script
Content type: text/plain
Description: example config include file
Class: Bobo PHP DB Class
Simple MySQL database class
Author: By
Last change: fixed
Date: 5 years ago
Size: 322 bytes
 

Contents

Class file image Download
<?php
    
# example db config include    
    
     // include the class:
     
include_once('class.db.php');
    
// set the variables:
     
$db_host "localhost";
     
$db_user "myusername";
     
$db_pass "mypassword";
     
$db_name "mydatabasename";
    
// make a db object:
     
$db = new mydb($db_host$db_user$db_pass$db_name);
?>