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

PHP Basic Tutorial

PHP Advanced Tutorial

PHP & MySQL

PHP Reference Manual

Usage and examples of PHP odbc_connect() function

PHP ODBC Reference Manual

The odbc_connect() function connects to the data source.

Syntax

resource odbc_connect ( string $dsn , string $user , string $password [, int $cursor_type ] )

Definition and usage

Used to connect to the odbc data source

Return value

Returns an ODBC connection on success, otherwise returns false.

Parameter

Serial numberParameters and descriptions
1

dsn

It contains information about the database source name of the connection

2

user

It contains information about the user

3

password

It contains information about the password

4

cursor_type

It sets the cursor type used for ODBC connections

PHP ODBC Reference Manual