<?
require "mysqlc.php";
// 'xxx' and 'yyy' must be valid username and password for you MySQL server
$host = 'localhost';
$user = 'xxx';
$pass = 'yyy';
$arrt = 2;
$pers = false;
$dbname = 'mysql';
$db = new c_mysql($user, $pass, $host, $dbname, $arrt, $pers);
if ($db->stat == False)
die("Database connection not available"); /* Modify here for mail notification on errors */
?>
|