Here's the code Im using:
Code: Select all
<?php
require_once('DB.php');
// database connection setup section, user:pass@localhost/database
$dsn = "mysql://root:kujta21@localhost/timh";
// establish the connection
$db = DB::connect($dsn);
if (DB::isError($db)) {
die ($db->getMessage( ));
}
?>I get this on the browser:
DB Error: connect failed
I am using PHP 4.3.11 and MySQL 4.1
I tried to figure all acceptable dsn combinations and none of them work
Some help anybody please?
thanks,
tim