Frees the statement and resultset resources from a select statement.
bool obj_free_result ( void )
True on success or false on failure.
<?php
try
{
$rs = $dbh->obj_select( "mytable" );
if ( $dbh->obj_error() )
throw new Exception( $dbh->obj_error_message() );
echo $rs->obj_num_rows();
$rs->obj_free_result();
}
catch ( Exception $e )
{
//log error and/or redirect user to error page
}
?>
See also: obj_close_statement, obj_free_statement