Re: [PHP-PEAR] troubles with db classes
[email protected] (Jon Parise) Mon, 12 Mar 2001 09:20:39 -0500
| Newsgroups | php.pear |
|---|---|
| Message-ID | <[email protected]> |
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 ([email protected]) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House Member