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: