Problem with PEAR DB-connection
Posted: Sun Jun 01, 2003 9:20 am
Hi,
I´ve included the PEAR DB.php-file, have started my local- and database-host, but this doesn´t want to work:
It doesn´t print me anything !! How can that be ??
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!";
}
?>