sqlite_num_rows
Returns a number of rows in a result.
Syntax
$sqlite_num_rows ( result )
|
Parameters
result
The result identifier.
Return Value
The number of rows in the result on success, or $null if there was an error.
Example
; This code assumes a connection is already established and stored in %db
var %sql = SELECT * FROM table var %res = $sqlite_query(%db, %sql) if (%res) { echo -a Number of rows returned: $sqlite_num_rows(%res) sqlite_free %res } else { echo -a Error executing query: %sqlite_errstr } |