Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
指定された接続オブジェクトと接続文字列を使用して、SQL Anywhere データベースサーバーへの接続を作成します。
sqlany_connect ( $conn, $str )
$conn sqlany_new_connection によって作成された接続オブジェクト。
$str SQL Anywhere 接続文字列。
接続が確立された場合はスカラー値 1、接続が失敗した場合は 0 を返します。sqlany_error を使用してエラーコードとエラーメッセージを取得します。
# Create a connection conn = api.sqlany_new_connection() # Establish a connection status = api.sqlany_connect( conn, "UID=DBA;PWD=sql" ) print "Connection status = #{status}\n"