Re: MySQL Connection Class

From: Date: Wed, 30 Jan 2002 05:32:54 +0000
Subject: Re: MySQL Connection Class
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-16317@lists.php.net to get a copy of this message
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 >

« previous php.db (#16317) next »