Home > PHP > Function > SQLite > SQLiteDatabase->singleQuery()

SQLiteDatabase->singleQuery()

SQLiteDatabase->singleQuery - Executes a query and returns either an array for one single column or the value of the first row

Syntax

array SQLiteDatabase->singleQuery (resource $db, string $query, bool $first_row_only, bool $decode_binary, string $query, bool $first_row_only, bool $decode_binary, resource $db, string $query, bool $first_row_only, bool $decode_binary, string $query, bool $first_row_only, bool $decode_binary)

Arguments

  • db
  • query
  • first_row_only
  • decode_binary
  • query
  • first_row_only
  • decode_binary
  • db
  • query
  • first_row_only
  • decode_binary
  • query
  • first_row_only
  • decode_binary

Description

Object oriented style (method):

Version

PHP 5, PECL sqlite >= 1.0.1

Return value