Home > PHP > Function > ODBC > odbc_pconnect()

odbc_pconnect()

odbc_pconnect - Open a persistent database connection

Syntax

resource odbc_pconnect (string $dsn, string $user, string $password, int $cursor_type)

Arguments

  • dsn - The result identifier returned by odbc_exec().
  • user - The result identifier returned by odbc_exec().
  • password - The result identifier returned by odbc_exec().
  • cursor_type - The result identifier returned by odbc_exec().

Description

Opens a persistent database connection.

Version

PHP 4, 5

Return value

Returns an ODBC connection id or 0 ( FALSE) on error.