Jump to content

PHP MySQL database class...


Aptana

Recommended Posts

First off, if this is in the wrong forum please feel free to move it. I had a look around and this seemed like the most logical place. :P

 

I have been learning PHP with MySQL for about 2 weeks now, and I am starting to find I can do most things. But now I'm looking for a nice MySQL class to use with PHP to simplify and cut down on my redundant code.

 

I have found a few via Google:

http://www.micahcarrick.com/04-19-2005/php-mysql-database-class.html

http://slaout.linux62.org/php/index.html

 

The first one doesn't work correctly (I get an unexpected $end error) and the second one looks FAR too complex for what I need it for... I just want to be able to connect to a database, select a table and run queries on that table.

 

If anyone knows a good class for this I'd very much appreciate your help. Thank you! :)

Link to comment
https://forums.phpfreaks.com/topic/171223-php-mysql-database-class/
Share on other sites

The coding in both of those classes is pretty bad....  The one from slaout.linux62.org is, to be honest, quite terribly coded.  (Well, it's not coded that bad...  Just designed badly.)

 

 

 

To be honest, based on your needs, it sounds like mysql_* should be fine....

 

 

Have you looked at mysqli or pdo?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.