RE: [PEAR] Undeclared function loading DB/mysql.php
| From: | Lukas Smith | Date: | Mon, 13 Jan 2003 14:28:39 +0000 |
| Subject: | RE: [PEAR] Undeclared function loading DB/mysql.php | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-3275@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Stephen Torri [mailto:storri@sbcglobal.net]
> Sent: Monday, January 13, 2003 3:25 PM
> To: Martin Jansen
> Cc: pear
> Subject: Re: [PEAR] Undeclared function loading DB/mysql.php
>
>
> Thanks for the fix and the reply. Here is the latest result. I
> change the index.php file so that it only includes DB.php. Upon
> reloading the page I get:
>
> Fatal error: Undefined class name 'db_mysql' in
> /home/storri/.www-docs/index.php on line 14
>
> Hopefully this will be fixed when the updated packages are available.
>
You also don't create an instance of DB_mysql manually (it sounds like
you are doing exactly that), but you call DB::connnect($dsn);
Where $dsn contains the dsn of your db.
You really should check out a tutorial on pear db.
Regards,
Lukas