Problem with PEAR DB-connection

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Dummkopf
Forum Newbie
Posts: 21
Joined: Sat May 24, 2003 1:54 pm

Problem with PEAR DB-connection

Post 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 ??
sdibb
Forum Newbie
Posts: 5
Joined: Mon Sep 08, 2003 12:34 pm
Location: Orem, Utah, USA

Post by sdibb »

Should be localhost, not localhosts
Post Reply