F.26. ODBC
Function | Returns | Description |
---|---|---|
odbc_close_all(void) | void | Closes all ODBC connections. |
odbc_binmode(int result_id, int mode) | bool | Handles binary column data. |
odbc_longreadlen(int result_id, int length) | bool | Handles LONG columns. |
odbc_prepare(resource connection_id, string query) | resource | Prepares a statement for execution. |
odbc_execute(resource result_id [, array parameters_array]) | bool | Executes a prepared statement. |
odbc_cursor(resource result_id) | string | Gets cursor name. |
odbc_data_source(resource connection_id, int fetch_type) | array | Returns information about the currently connected data source. |
odbc_exec(resource connection_id, string query [, int flags]) | resource | Prepares and executes an SQL statement. |
odbc_fetch_object(int result [, int rownumber]) | object | Fetches a result row as an object. |
odbc_fetch_array(int result [, int rownumber]) | array | Fetches a result row as an associative array. |
odbc_fetch_into(resource result_id, array result_array, [, int rownumber]) | int | Fetches one result row into an array. |
odbc_fetch_row(resource result_id [, int row_number]) | bool | Fetches a row. |
odbc_result(resource result_id, mixed field) | mixed | Gets result data. |
odbc_result_all(resource result_id [, string format]) | int | Prints result as HTML table. |
odbc_free_result(resource result_id) | bool | Frees resources associated with a result. |
odbc_connect(string DSN, string user, string password [, int cursor_option]) | resource | Connects to a datasource. |
odbc_pconnect(string DSN, string user, string password [, int cursor_option]) ... |
Get Web Standards Programmer's Reference: HTML, CSS, JavaScript®, Perl, Python®, and PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.