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

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » SQL Anywhere PHP API » SQL Anywhere PHP API reference

sqlanywhere_commit Next Page

sqlanywhere_connect


Prototype

resource sqlanywhere_connect( string con_str )

Description

Establishes a connection to a SQL Anywhere database.

Parameters

con_str    A connection string as recognized by SQL Anywhere.

Returns

A positive SQL Anywhere link identifier on success, or an error and 0 on failure.

Example

This example passes the user ID and password for a SQL Anywhere database in the connection string.

$conn = sqlanywhere_connect( "UID=DBA;PWD=sql" );
Related functions