Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere PHP API » SQL Anywhere PHP API 参考 » 不建议使用 PHP 函数

 

sqlanywhere_connect(不建议使用)

原型
resource sqlanywhere_connect(  string con_str  )
说明

不建议使用此函数。应该改用以下 PHP 函数: sasql_connect.

建立与 SQL Anywhere 数据库的连接。

参数

con_str   一个由 SQL Anywhere 识别的连接字符串。

返回值

一个正的 SQL Anywhere 链接标识符(成功时),或一个错误和 0(失败时)。

示例

本示例传递连接字符串中的 SQL Anywhere 数据库的用户 ID 和口令。

$conn = sqlanywhere_connect( "UID=DBA;PWD=sql" );
相关函数