odbc_connect(): establish a connection. : odbc_connect « MySQL Database « PHP






odbc_connect(): establish a connection.

 
Its syntax is:int odbc_connect (string data_source, string username, string password [,int cursor_type])

There are four possible values for the optional parameter cursor_type:

SQL_CUR_USE_IF_NEEDED
SQL_CUR_USE_ODBC
SQL_CUR_USE_DRIVER
SQL_CUR_DEFAULT


<?
odbc_connect("myAccessDB", "user", "secret") or die("Could not connect to ODBC database");
?>
  
  








Related examples in the same category

1.Using PHP's ODBC functions to interface with MS Access