sqlite_has_prev

(PHP 5)

sqlite_has_prev -- Returns whether or not a previous row is available

Description

bool sqlite_has_prev ( resource result)

sqlite_has_prev() returns TRUE if there are more previous rows available from the result handle, or FALSE otherwise;

Note: This function cannot be used with unbuffered result handles.

See also sqlite_prev(), sqlite_has_more(), and sqlite_num_rows().

font>$dbhandle, $sql);

    if (
sqlite_num_rows($res) > 0) {
        echo
sqlite_fetch_single($res); // 42
    
}
    
    
sqlite_close($dbhandle);
}
?>