PHP 忒聊
綴豖
ヶ輛
ovrimos_connect
(PHP 4 = 4.0.3)
Description
ovrimos_connect() is used to connect to the specified database.
ovrimos_connect() returns a connection id (greater than 0) or 0 for failure. The meaning of 'host' and 'port' are those used everywhere in Ovrimos APIs. 'Host' is a host name or IP address and 'db' is either a database name, or a string containing the port number.
瞰赽 1. ovrimos_connect() Example
?php $conn = ovrimos_connect ("server.domain.com", "8001", "admin", "password"); if ($conn != 0) {echo "Connection ok!"; $res=ovrimos_exec ($conn, "select table_id, table_name from sys.tables"); if ($res != 0) {echo "Statement ok!"; ovrimos_result_all ($res); ovrimos_free_result ($res);} ovrimos_close($conn);}?
綴豖
れ萸
ヶ輛
ovrimos_commit
奻珨撰
ovrimos_cursor