sqlite_field_name
Returns the name of the specified field.
Syntax
$sqlite_field_name ( result, field_index )
|
Parameters
result
The result identifier.
field_index
The ordinal index of the field. The first field has an index of 1.
Return Value
The name of the field 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 Name of the first field: $sqlite_field_name(%res, 1) sqlite_free %res } else { echo -a Error executing query: %sqlite_errstr } |