非常感谢你花费时间看我的问题,
在ASP下的连接字符串像这样,在sybase central中测试是可以连通的,请问现在要用PHP连接,该怎么写代码.
楼主着急等待中..... {Adaptive Server Anywhere 9.0};
dsn=entusr;uid=DBA;pwd=959XP-LGB5W-JXW8Y-HE6AS;database=entusr
在ASP下的连接字符串像这样,在sybase central中测试是可以连通的,请问现在要用PHP连接,该怎么写代码.
楼主着急等待中..... {Adaptive Server Anywhere 9.0};
dsn=entusr;uid=DBA;pwd=959XP-LGB5W-JXW8Y-HE6AS;database=entusr
sybase_connect
(PHP 3, PHP 4, PHP 5)sybase_connect -- Opens a Sybase server connection
Description
resource sybase_connect ( [string servername [, string username [, string password [, string charset [, string appname]]]]] )<?php
$link = sybase_connect('host', 'user', 'pass') or die("Could not connect !");
echo "Connected successfully";
sybase_close($link);
?>