|
From: | EcliptuX |
Subject: | Re: [Hitweb-dev] DB Error: not found |
Date: | Fri, 27 May 2005 22:43:54 +0200 |
<?phpJ'ai modifié 2-3 trucs et j'ai notamment renseigné la ligne $dns=.......
require_once 'DB.php';
//$dsn = 'pgsql://someuser:address@hidden/thedb';
$dsn = 'mysql://root:address@hidden';
$options = array(
'debug' => 2,
'portability' => DB_PORTABILITY_ALL,
);
$db =& DB::connect($dsn, $options);
if (PEAR::isError($db)) {
echo "Ca marche pas :( <br>";
die($db->getMessage());
}
echo "Ca marche :)";
$db->disconnect();
?>
signature.asc
Description: This is a digitally signed message part
[Prev in Thread] | Current Thread | [Next in Thread] |