Here is a PHP class to facilitate PHP/MySQL development.
It propose convenient methods and an easy way to access a database by reducing the amount of code you should write. It also provides debugging facilities: you can display the request and the resulting table by just adding a parameter to the methods of this class. Queries are automatically debugged when there is an error.
It propose convenient methods and an easy way to access a database by reducing the amount of code you should write. It also provides debugging facilities: you can display the request and the resulting table by just adding a parameter to the methods of this class. Queries are automatically debugged when there is an error.
Example of Debugging
Here are examples of how powerful the class is when it comes to debugging queries.
You can debug each queries one by one by setting the second parameter to true:
$db->defaultDebug is false
$db->query("SELECT * FROM Users");
$db->query("SELECT * FROM Users", true);
