Page 1 of 1

Problem with PEAR DB-connection

Posted: Sun Jun 01, 2003 9:20 am
by Dummkopf
Hi,

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!";
}
?>
It doesn´t print me anything !! How can that be ??

Posted: Mon Sep 08, 2003 12:48 pm
by sdibb
Should be localhost, not localhosts