php8.5
Home/ Manual/ sqlite3 / sqlite3stmt/ SQLite3Stmt::execute

SQLite3Stmt::execute

PHP function Edit on GitHub ✎

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

Executes a prepared statement and returns a result set object

Description

SQLite3Stmt::execute(): SQLite3Result|false

Executes a prepared statement and returns a result set object.

Caution

Result set objects retrieved by calling this method on the same statement object are not independent, but rather share the same underlying structure. Therefore it is recommended to call SQLite3Result::finalize, before calling SQLite3Stmt::execute on the same statement object again.

Parameters Parameters

Return Values

Returns an SQLite3Result object on successful execution of the prepared statement, false on failure.

See Also

  • SQLite3::prepare
  • SQLite3Stmt::bindValue
  • SQLite3Stmt::bindParam

Source: reference/sqlite3/sqlite3stmt/execute.xml · from the official PHP manual (php/doc-en)