I´ve included the PEAR DB.php-file, have started my local- and database-host, but this doesn´t want to work:
Code: Select all
<?php
$dsn = "mysql://user:pass@localhosts/triculum";
$db = DB::connect($dsn);
if (DB::isError($db)) {
echo $db->getMessage();
} else {
echo "Fine!";
}
?>