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
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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.