Re: [PHP-DB] MySQL Connection Class

2002-01-30 Thread jas
ss.. You > can always have more properties of the class and more functions.. > If you prefer you can hardcode the login, databasename info to the class > and call the connection fucntions without arguments, or you can set the > variables of the class and use it so, you can also have more fun

RE: [PHP-DB] MySQL Connection Class

2002-01-30 Thread Gurhan Ozen
t the variables of the class and use it so, you can also have more functions to connect to the different databases (PostGreSQL, Oracle, etc.) . Does this help??? Gurhan -Original Message- From: jas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 12:33 AM To: [EMAIL PR

Re: [PHP-DB] MySQL Connection Class

2002-01-30 Thread jas
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

Re: [PHP-DB] MySQL Connection Class

2002-01-30 Thread Dave Richardson
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 $

Re: [PHP-DB] MySQL Connection Class

2002-01-30 Thread jas
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 wr

RE: [PHP-DB] MySQL Connection Class

2002-01-30 Thread Gurhan Ozen
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,