|
sqlanywhere_connect
Prototype
resource sqlanywhere_connect( string con_str
)
Description
Establishes a connection to an Adaptive Server Anywhere database.
Parameters
con_str A connection
string as recognized by Adaptive Server Anywhere.
Returns
A positive Adaptive Server Anywhere link identifier on success, or an error and 0 on failure.
Example
This example passes the user ID and password for an Adaptive Server Anywhere
database in the connection string.
$conn = sqlanywhere_connect( "UID=dba;PWD=sql" );
Related functions
sqlanywhere_pconnect
sqlanywhere_disconnect
|