sqlite_current

(PHP 5)

sqlite_current -- Fetches the current row from a result set as an array

Description

array sqlite_current ( resource result [, int result_type [, bool decode_binary]])

sqlite_current() is identical to sqlite_fetch_array() except that it does not advance to the next row prior to returning the data; it returns the data from the current position only.

If the current position is beyond the final row, this function returns FALSE

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

See also sqlite_seek(), sqlite_next(), and sqlite_fetch_array().

>(md5($string));
}

if (
$dbhandle = sqlite_open('mysqlitedb', 0666, $sqliteerror)) {
    
    
sqlite_create_function($dbhandle, 'md5rev', 'md5_and_reverse', 1);
    
    
$sql  = 'SELECT md5rev(filename) FROM files';
    
$rows = sqlite_array_query($dbhandle, $sql);
} else {
    echo
'Error opening sqlite db: ' . $sqliteerror;
    exit;
}
?>