I can't find a way to return the keys of affected rows through pear after doing an INSERT or UPDATE. I want to do it in a way that is not database specific.
I've read the pear docs on autoExecute() and the return value is a DB_Result, but thats not what i'm finding:
$BINDS['test']=$_REQUEST['test'];
$result=$db->autoExecute("tbltest", $BINDS, DB_AUTOQUERY_INSERT);
i was suprised to find the record was inserted and a print_r($result) returned 1 instead of the DB_Result.....
any suggestions using autoExecute() or any other pear method to achieve this would be appreciated!