Home > PHP > Function > ODBC > odbc_exec()

odbc_exec()

odbc_exec - Prepare and execute a SQL statement

Syntax

resource odbc_exec (resource $connection_id, string $query_string, int $flags)

Arguments

  • connection_id - The ODBC connection identifier, see odbc_connect() for details.
  • query_string - The SQL statement.
  • flags - This parameter is currently not used.

Description

Sends an SQL statement to the database server.

Version

PHP 4, 5

Return value

Returns an ODBC result identifier if the SQL command was executed successfully, or FALSE on error.