در زیر نمونه کد اتصال به دیتابیس odbc آورده شده است که می توانید آنرا کاستومایز نمایید.
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"); ?>
دیدگاه بگذارید
Be the First to Comment!