PHP连接SQL数据库失败。。 求解释。
代码:$conn=mssql_connect("localhost","Sun","sun")ordie("数据库链接错误");mssql_select_db("JOBS...
代码:
$conn = mssql_connect("localhost", "Sun", "sun") or die("数据库链接错误");
mssql_select_db("JOBS_SunDongXu", $conn);
$sql="select * from EMPLOYEE";
$query=mssql_query($sql);
$row=mssql_fetch_array($query);
print_r($row);
错误:Call to undefined function mssql_connect() in D:\wamp\www\Sun\file.php on line 9 展开
$conn = mssql_connect("localhost", "Sun", "sun") or die("数据库链接错误");
mssql_select_db("JOBS_SunDongXu", $conn);
$sql="select * from EMPLOYEE";
$query=mssql_query($sql);
$row=mssql_fetch_array($query);
print_r($row);
错误:Call to undefined function mssql_connect() in D:\wamp\www\Sun\file.php on line 9 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询