work based on http://www.phpclasses.org/package/3698-PHP-MySQL-database-access-wrapper.html
Ultimate MySQL Wrapper Class for PHP 5.x
Contributions from
- Frank P. Walentynowicz
- Larry Wakeman
- Nicola Abbiuso
- Douglas Gintz
- Emre Erkan
- Vincent van Daal
- Xander Groesbeek (SQLValue:int quoting; QueryArray tweak)
- Ger Hobbelt
- Establish MySQL server connections easily
- Execute SQL queries
- Retrieve query results into objects or arrays
- Retrieve the last inserted ID
- Manage transactions (transaction processing)
- Retrieve the list tables of a database
- Retrieve the list fields of a table (or field comments)
- Retrieve the length or data type of a field
- Measure the time a query takes to execute
- Display query results in an HTML table
- Easy formatting for SQL parameters and values
- Generate SQL Selects, Inserts, Updates, and Deletes
- Error handling with error numbers and text
- And much more!
Free (MIT license)