odbc_execute

(PHP 4, PHP 5, PHP 7) Execute a prepared statement bool odbc_execute ( resource $result_id [, array $parameters_array ] ) Executes a statement prepared with odbc_prepare(). Parameters: result_id The result id resource, from odbc_prepare(). parameters_array Parameters in parameter_array will be substituted for placeholders in the prepare

odbc_error

(PHP 4 >= 4.0.5, PHP 5, PHP 7) Get the last error code string odbc_error ([ resource $connection_id ] ) Returns a six-digit ODBC state, or an empty string if there has been no errors. Parameters: connection_id The ODBC connection identifier, see odbc_connect() for details. Returns: If connection_id is specified, the last state of that connection

odbc_fetch_object

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Fetch a result row as an object object odbc_fetch_object ( resource $result [, int $rownumber ] ) Fetch an object from an ODBC query. Parameters: result The result resource from odbc_exec(). rownumber Optionally choose which row number to retrieve. Returns: Returns an object th

odbc_errormsg

(PHP 4 >= 4.0.5, PHP 5, PHP 7) Get the last error message string odbc_errormsg ([ resource $connection_id ] ) Returns a string containing the last ODBC error message, or an empty string if there has been no errors. Parameters: connection_id The ODBC connection identifier, see odbc_connect() for details. Returns: If connection_id is specified, th

odbc_exec

(PHP 4, PHP 5, PHP 7) Prepare and execute an SQL statement resource odbc_exec ( resource $connection_id, string $query_string [, int $flags ] ) Sends an SQL statement to the database server. Parameters: connection_id The ODBC connection identifier, see odbc_connect() for details. query_string The SQL statement. flag

odbc_data_source

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Returns information about a current connection array odbc_data_source ( resource $connection_id, int $fetch_type ) This function will return the list of available DSN (after calling it several times). Parameters: connection_id The ODBC connection identifier, see odbc_connect() for details. fetch_type The

odbc_do

(PHP 4, PHP 5, PHP 7) Alias of odbc_exec() This function is an alias of: odbc_exec().

odbc_cursor

(PHP 4, PHP 5, PHP 7) Get cursorname string odbc_cursor ( resource $result_id ) Gets the cursorname for the given result_id. Parameters: result_id The result identifier. Returns: Returns the cursor name, as a string.

odbc_connect

(PHP 4, PHP 5, PHP 7) Connect to a datasource resource odbc_connect ( string $dsn, string $user, string $password [, int $cursor_type ] ) The connection id returned by this functions is needed by other ODBC functions. You can have multiple connections open at once as long as they either use different db or different credentials. With some ODBC drivers, executing a complex stored procedure may fail with an error similar to:

odbc_columns

(PHP 4, PHP 5, PHP 7) Lists the column names in specified tables resource odbc_columns ( resource $connection_id [, string $qualifier [, string $schema [, string $table_name [, string $column_name ]]]] ) Lists all columns in the requested range. Parameters: connection_id The ODBC connection identifier, see odbc_connect() for details. qualifier