sqlite_fetch_array
SQLiteResult->fetch
SQLiteUnbuffered->fetch
Fetches the next row from a result set as an array
&reftitle.description;
arraysqlite_fetch_array
resourceresult
intresult_type
booldecode_binary
Object oriented style (method):
SQLiteResult
arrayfetch
intresult_type
booldecode_binary
SQLiteUnbuffered
arrayfetch
intresult_type
booldecode_binary
Fetches the next row from the given result handle.
If there are no more rows, returns &false;, otherwise returns an
associative array representing the row data.
&reftitle.parameters;
result
The SQLite result resource. This parameter is not required when using
the object-oriented method.
result_type
&sqlite.result-type;
decode_binary
&sqlite.decode-bin;
&reftitle.returnvalues;
Returns an array of the next row from a result set; &false; if the
next position is beyond the final row.
&sqlite.case-fold;
&reftitle.examples;
Procedural example
]]>
Object-oriented example
query('SELECT name, email FROM users LIMIT 25'); // buffered result set
$query = $dbhandle->unbufferedQuery('SELECT name, email FROM users LIMIT 25'); // unbuffered result set
$result = $query->fetchAll(SQLITE_ASSOC);
foreach ($result as $entry) {
echo 'Name: ' . $entry['name'] . ' E-mail: ' . $entry['email'];
}
?>
]]>
&reftitle.seealso;
sqlite_array_query
sqlite_fetch_string