RE: [PEAR] Undeclared function loading DB/mysql.php
| From: | Stephen Torri | Date: | Mon, 13 Jan 2003 15:25:57 +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-3281@lists.php.net to get a copy of this message | ||
On Mon, 2003-01-13 at 08:28, Lukas Smith wrote:
> > -----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.
Thanks for the reply. Do you have a link to a tutorial?
Stephen