Re: MySQL Connection Class
| From: | jas | Date: | Wed, 30 Jan 2002 05:53:26 +0000 |
| Subject: | Re: MySQL Connection Class | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-16319@lists.php.net to get a copy of this message | ||
Ok just to clear it up... our server is not running php4 unfortunately. =)
"Dave Richardson" <der@surfinbox.com> wrote in message
news:57717.64.4.198.34.1012413468.squirrel@mail.surfinbox.com...
>
> A number of connection classes and abstraction toolkits already exist.
Your
> PHP 4.x install probably came with PEAR's DB.php abstraction layer. Save
> yourself the trouble perhaps?
>
> jas said:
> > So all I would need to do is create a file named db_connection.php3 and
> > put in the functions $db =
> > mysql_connection("localhost","username","password") or
> > die("could not
> > connect");
> > and then put an include statement on the top of each page that needs
> > the db connectiong? Please correct me if I am wrong, I have never
> > really used class files for my own scripts before.
> > Thanks again.
> > "Gurhan Ozen" <c-gurhan.ozen@wcom.com> wrote in message
> >
> > news:NEBBJFKICMBBMAOHJDFOKEPOCLAA.c-gurhan.ozen@wcom.com...
> >> Are you trying to write classes to connect to the database using PHP's
> >> native DB connection functions?? If yes, you should only check those
> >> database functions' tutorials and just use them inside your class..
> >>
> >> Gurhan
> >>
> >>
> >> -----Original Message-----
> >> From: jas [mailto:jlgerfen@hotmail.com]
> >> Sent: Wednesday, January 30, 2002 12:09 AM
> >> To: php-db@lists.php.net
> >> Subject: [PHP-DB] MySQL Connection Class
> >>
> >>
> >> I know this may seem a little vague but I would like to know where a
> >> good tutorial on creating database connection class files would be. I
> >> have
> > been
> >> looking and as of yet I have not found one that deals specifically
> >> with
> > this
> >> question. Thanks in advance.
> >> Jas
> >>
> >>
> >>
> >> --
> >> PHP Database Mailing List (http://www.php.net/)
> >> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> >> For additional commands, e-mail: php-db-help@lists.php.net
> >> To contact the list administrators, e-mail:
> >> php-list-admin@lists.php.net
> >>
> >
> >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-db-help@lists.php.net
> > To contact the list administrators, e-mail:
> > php-list-admin@lists.php.net
>
>
>