<?PHP
/*
This file is used for Database Setup.
Pretty self explanitary, replace the values below with your corresponding mySQL values.
Note!
The "table name" is defined in the Authentication.php class.
*/
require_once 'DB.php';
$username = "USERNAME"; // Put your username here
$password = "PASSWORD"; // Put your password here
$host = "HOST"; // Put the IP address or hostname of your mySQL server here.
$db_name = "DATABASE"; // Put your database name here.
$dsn = "mysql://$username:$password@$host/$db_name";
$db = DB::connect($dsn, true);
$db->setFetchMode(DB_FETCHMODE_OBJECT);
if (DB::isError($db)) {
die ($db->getMessage());
}
global $db;
?>
|