Mega Code Archive

 
Categories / Php / MySQL Database
 

Odbc_connect()

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"); ?>