PHP Manual
Prev |  | Next

# odbc_exec

odbc_exec -- Prepare and execute a SQL statement

## Description

`int odbc_exec`(int connection_id, string query_string);

Returns `false` on error. Returns an ODBC result identifier if the SQL command was executed successfully.

odbc_exec() will send an SQL statement to the database server specified by `connection_id`. This parameter must be a valid identifier returned by odbc_connect() or odbc_pconnect().

See also: odbc_prepare() and odbc_execute() for multiple execution of SQL statements.

Prev | Home | Next
odbc_do | Up | odbc_execute