<?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);
?>
|