Re: troubles with db classes
| From: | Jon Parise | Date: | Mon, 12 Mar 2001 14:20:39 +0000 |
| Subject: | Re: troubles with db classes | ||
| References: | 1 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-1799@lists.php.net to get a copy of this message | ||
On Mon, Mar 12, 2001 at 01:14:48PM +0200, Burak DAYIOGLU wrote:
Your database connection is probably failing.
>
> $dsn=array(phptype=>DNS_DATABASE,hostspec=>"localhost",database=>"dns");
> $database=DB::connect($dsn);
if (DB::isError($database)) {
echo "error";
}
Try that and check if "error" is printed.
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House
Member