RE: [PEAR] Undeclared function loading DB/mysql.php
| From: | Lukas Smith | Date: | Mon, 13 Jan 2003 15:30:22 +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-3282@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Stephen Torri [mailto:storri@sbcglobal.net]
> Sent: Monday, January 13, 2003 4:26 PM
> To: Lukas Smith
> Cc: 'Martin Jansen'; 'pear'
> Subject: RE: [PEAR] Undeclared function loading DB/mysql.php
>
> 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?
>
well a quick look on pear.php.net might reveal the following link:
http://pear.php.net/support.php
scrolling down you will find a few tutorials
google is also your friend .. PEAR DB has been addressed in a gazillion
tutorials
regards,
Lukas