adodb也支持sybase sql anywhere的include("$adodb_path/adodb.inc.php"); // includes the adodb library
$db = NewADOConnection('$database_type'); // A new connection
$db->Connect("$host", "$user", "$password", "$database_name");以下是抄来的
现在你已经拥有一个数据库连接对象 $db 了。 你也可以使用 ADONewConnection 来替换 NewADOConnection —— 这两个是同一函数的不同的名字。 连接的数据库变量 $database_type 需要针对你的实际情况改成你所需要的。可以使用以下列表中的一个(括号内的为描述部分,不要在代码中使用):access (Microsoft Access/Jet) 
ado (Generic ADO, the base for all the other ADO drivers) 
ado_access (Microsoft Access/Jet using ADO) 
ado_mssql (Microsoft SQL Server using ADO) 
db2 (DB2) 
vfp (Microsoft Visual FoxPro) 
fbsql (FrontBase) 
ibase (Interbase 6 or before) 
firebird (Firebird) 
informix72 (Informix databases before Informix 7.3) 
informix (Informix) 
maxsql (MySQL with transaction support) 
mssql (Microsoft SQL Server 7) 
mssqlpo (Portable mssql driver) 
mysql (MySQL without transaction support) 
mysqlt (MySQL with transaction support, identical to maxmysql) 
oci8 (Oracle 8/9) 
oci805 (Oracle 8.0.5) 
oci8po (Oracle 8/9 portable driver) 
odbc (Generic ODBC, the base for all the other ODBC drivers) 
odbc_mssql (MSSQL via ODBC) 
odbc_oracle (Oracle via ODBC) 
oracle (Oracle 7) 
postgres (PostgreSQL) 
postgres64 (PostgreSQL 6.4) 
postgres7 (PostgreSQL 7, currently identical to postgres ) 
sqlanywhere (Sybase SQL Anywhere) 
sybase (Sybase) 看这个地址
http://www.phpchina.cn/jiaocheng/html/middle/2006/0602/255.html