I used to use PEAR MDB2 and one of the things I loved was the autoExecute()
It really cut down on code.
But's it's a pain having to get MDB2 enabled on some hosted servers. I'd like to use either PDO or just include some class file.
It looks like adodb has autoExecute too http://phplens.com/lens/adodb/docs-adodb.htm#autoexecute
Is there any wrapper out there that would let me do it with PDO or mysqli even? (because all my stuff is mysql specific anyway)
$table = 'user';
$data = array (
'userid' => '3344',
'name' => 'john blogg',
'age' => '24',
'sex' => 'male'
);
$result = $adodb->AutoExecute($table, $data, 'INSERT');