Error flag for the last error.
bool obj_error ( void )
True on last error or false if no error.
<?php
try
{
$rs = $dbh->obj_query( "delete from mytable where id=1" );
if ( $dbh->obj_error() )
throw new Exception( $dbh->obj_error_message() );
echo $rs->obj_affected_rows();
}
catch ( Exception $e )
{
//log error and/or redirect user to error page
}
?>