odbc_setoption

int odbc_setoption(resource ID, int function, int option, int parameter) 
ID Connection or result ID
function Function to use
option Option to set
parameter Option value

Sets certain ODBC options.

Returns:

TRUE on success; FALSE on error

Description:

This is a specialist function and should be used with care unless you know your way around ODBC. Unlike other ODBC functions, this works with either the connection ID or the result ID, depending on your situation. In addition, this function can be driver-specific, and some options may not work inside or outside a connection or result. In short, be careful.

The value of the function parameter is set to 1, meaning SQLSetConnectOption() if ID is a connection ID, or 2, meaning ...

Get PHP Functions Essential Reference 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.