Re: Pear DB Tutorial

From: Date: Sat, 14 Apr 2001 20:59:21 +0000
Subject: Re: Pear DB Tutorial
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-226@lists.php.net to get a copy of this message
Thomas,
There is a small typo : $dsn = 'mysql://$user:$pass@$host/$db_name'; // DB::connect will return a Pear DB object on success // or a Pear DB Error object on error $db = DB::connect($dns); using $db = BD::connect($dsn); works much better :-)) And another thing die ($db->getMessage()) throws : Warning: ini_set() has been disabled for security reasons. in mysql.php on line 105 Luc

« previous php.pear.dev (#226) next »