|All requests||>||Best PDO class to use with MySQL||>||Request new recommendation||>||Featured requests||>||No recommendations|
by Luke Grenncastle - 8 years ago (2014-11-05)
I need a PDO class to run queries on a MySql database.
I need to be able to run all standard queries such as update, insert, delete, add, get last inserted records, number of rows, etc..
There are several MySQL PDO classes, some good ones.
This one has built-in support for setting the connection string for many types of databases including MySQL.
It supports executing queries with prepared parameters using the query_secure function.
The class can also execute common types of queries (INSERT, UPDATE, DELETE, etc..) from arrays of parameter values that define tables, fields, field values, conditions, etc..
The documentation file is actually a PHP script pdo_database.class_manual.php but it covers all the aspects of the class.