Stop working at inventing the wheel, just use it. POO PHP MySQLi Interface.
MySQLiManager was created by:
- Pablo Bejarano (http://www.twitter.com/pabhoz)
- Michael Sandoval (http://www.twitter.com/misan)
- PHP5
- MySQL
Setup should be super easy. Follow these steps:
MySQLiManager uses the Creative Commons Attribution Non-Commercial Share Alike (CC BY-NC-SA) License. Your use of this code and all associated materials is bound by the terms of this license. For full information, please see this website: http://creativecommons.org/licenses/
Attribution: The application should include "powered by MySQLiManager" unless you've been given explicit, written permission from any of the creators to remove it.