RE: [PEAR] Problems with commands
| From: | LIMBOURG Arnaud | Date: | Wed, 18 Jun 2003 15:21:52 +0000 |
| Subject: | RE: [PEAR] Problems with commands | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-6105@lists.php.net to get a copy of this message | ||
> Hello,
>
> I am using PEAR for the first time. In my include_path, I
> have included
> the path to PEAR that came with the PHP4 distribution. I am able to
> connect somewhat, as my application is finding DB.php. However, I am
> getting an error that says "function query() not found". What am I
> doing wrong? I have a feeling that there are more files
> somewhere that
> I haven't included in my include_path that I need, but I'm not sure
> what those files would be.
>
> Any help would be greatly appreciated.
Try,
$dsn = 'you dsn here';
$db = DB::connect($dsn);
if (DB::isError($db)) {
die($db->getErrorMessage() . ' ' . $db->getUserinfo());
}
Apparently there is a problem with the connection to the database, the above
code should help you to find what is wrong.
Arnaud.