ovrimos_longreadlen

(PHP 4 >= 4.0.3, PHP 5)

ovrimos_longreadlen --  Specifies how many bytes are to be retrieved from long datatypes

Description

bool ovrimos_longreadlen ( int result_id, int length)

ovrimos_longreadlen() specifies how many bytes are to be retrieved from long datatypes (long varchar and long varbinary). Default is zero. It currently sets this parameter the specified result set. Returns TRUE.

ho "Connection ok!";
    
$res=ovrimos_exec($conn, "select table_id, table_name from sys.tables");
    if (
$res != 0) {
        echo
"Statement ok!";
        if (
ovrimos_fetch_row($res, "First")) {
            
$table_id = ovrimos_result($res, 1);
            
$table_name = ovrimos_result($res, 2);
            echo
"table_id=" . $table_id . ", table_name=" . $table_name . "\n";
            if (
ovrimos_fetch_row($res, "Next")) {
                
$table_id = ovrimos_result($res, "table_id");
                
$table_name = ovrimos_result($res, "table_name");
                echo
"table_id=" . $table_id . ", table_name=" . $table_name . "\n";
            } else {
                echo
"Next: error\n";
            }
        } else {
            echo
"First: error\n";
        }
        
ovrimos_free_result($res);
    }
    
ovrimos_close($conn);
}
?>