<?php
try
{
$rs = $dbh->obj_update( "mytable", array( "color" => "blue" ), "id=6" );
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
}
?>