update : 2015.11.03
php.shukuma.com검색:
|
odbc_connect(PHP 4, PHP 5) odbc_connect — Connect to a datasource 설명
resource odbc_connect
( string
$dsn
, string $user
, string $password
[, int $cursor_type
] )The connection id returned by this functions is needed by other ODBC functions. You can have multiple connections open at once as long as they either use different db or different credentials. With some ODBC drivers, executing a complex stored procedure may fail with an error similar to: "Cannot open a cursor on a stored procedure that has anything other than a single select statement in it". Using SQL_CUR_USE_ODBC may avoid that error. Also, some drivers don't support the optional row_number parameter in odbc_fetch_row(). SQL_CUR_USE_ODBC might help in that case, too. 인수
반환값
Returns an ODBC connection or ( 예제
Example #1 DSN-less connections
<?php |