PDO

migrating mysql to PDO