sqlite_num_fields

mIRC SQLite

sqlite_num_fields
Returns a number of fields in a result.
Syntax
$sqlite_num_fields ( result )
Parameters
result
The result identifier.
Return Value
The number of fields 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 fields returned: $sqlite_num_fields(%res)
  sqlite_free %res
}
else {
  echo -a Error executing query: %sqlite_errstr
}