English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

Usage and examples of PHP odbc_setoption() function

PHP ODBC Reference Manual

The odbc_setoption() function is used to adjust ODBC settings

Syntax

bool odbc_setoption ( resource $id , int $function , int $option , int $param )

Definition and usage

It is used to adjust the odbc settings

Return value

Returns true on success, otherwise returns false

Parameter

Serial numberParameters and descriptions
1

id

It is the connection ID or result ID whose settings are to be changed.

For SQLSetConnectOption(), this is a connection ID. For SQLSetStmtOption(), this is a result ID.

2

function

Used to find whether to use the odbc function

3

option

It is used to set an option

4

param

Value of the given option

PHP ODBC Reference Manual