Mcloide's resources library

All about PHP, Javascript, concepts and development

Posts Tagged ‘php4’

Mysql Handler Class – Version 2.0

Posted by mcloide on September 23, 2008

I have finally taken a better look at the class and I have rewrite it in some methods, but the biggest change was the complete adaptation for PHP4 or PHP5.

The class still with the same structure:

  • Constructor with a handler to initialize the mysql connection and database selection
  • select, insert, update, delete and query methods
  • pagination

As a suggestion, if you can, use the PHP5 version. PHP5’s object model is much stronger than PHP4.

Follows the links for downloading the class:

Posted in PHP, development, resources | Tagged: , , , , , | Leave a Comment »

MySQL Handler Class – Update

Posted by mcloide on September 22, 2008

I noticed that the class had a little mistake that would make it not work properly under PHP4 and a little annoying bug that I had on the select method. If you already had downloaded the class, please download this newer version.

Click here to download the newer version: Download

Posted in PHP, development, resources | Tagged: , , , , , , , | 4 Comments »

MySQL Handler Class

Posted by mcloide on September 4, 2008

Consider the scenario where you have only PHP4, you can’t use PEARL DBManager or even a Zend Framework. Using MySQLi extension from PHP is out of question and you can’t update the server because it will affect all other sites.

Well I got into a situation like that today and I had to modify all my MySQLi Handler class to work this around.

I have created a MySQL Handler class. It will work just like the MySQLi Handler class, but using mysql functions.

If you find yourself in a situation just like the one explained above, this might help.

I noticed that the class had a little mistake that would make it not work properly under PHP4 and a little annoying bug that I had on the select method. If you already had downloaded the class, please download this newer version.

Follow the links for downloading the class:

Posted in PHP, development, resources | Tagged: , , , , , | 17 Comments »