MySQL2PDO is a project mainly written in PHP, it's free.
Adds ability to switch between raw mysql and PDO
MYSQL2PDO
This project contains only one small file - DBAdapter.php, and one small class - MySQL. Don't ask me why do the file and the class have different names. They are as they are.. you can rename them if you want :)
Class was written to help migrate extremely big projet from raw mysql functions to raw PDO, and, later to ORM.
This class covers the following mysql functions:
mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_query mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_num_rows mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_free_result mysql_escape_string mysql_real_escape_string
The whole class is a big ugly hack, but it works in some way.
How to use it:
If your site still works - then update was successful and you're running on PDO :)
Thanks, Vitaly.