Ok just to clear it up... our server is not running php4 unfortunately. =)
"Dave Richardson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> 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" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >> 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:[EMAIL PROTECTED]]
> >> Sent: Wednesday, January 30, 2002 12:09 AM
> >> To: [EMAIL PROTECTED]
> >> 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: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> To contact the list administrators, e-mail:
> >> [EMAIL PROTECTED]
> >>
> >
> >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
>
>
>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to