odbc_pconnect

esource odbc_pconnect(string DSN, string user, string pass, int cursor) 
DSN DSN (Data Source Name)
user Username
pass Password
cursor Cursor type

Connects to an ODBC data source.

Returns:

Connection ID or error

Description:

Creates a connection to an ODBC database. If a connection has already been made and odbc_pconnect() is called again, the current connection ID is returned. odbc_pconnect() does not terminate the current database once the script has terminated, but keeps the connection open across subsequent scripts until odbc_close() has been called. If a username and password are not required, use empty quotes ("") rather than omitting the parameters.

The cursor type is optional but useful for dealing with some ODBC ...

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.