Fatal error: Call to undefined function: mssql_connect() in C:\Inetpub\wwwroot\database.php on line 5该如何解决呢?
我的程序是:
<?php
function mssql_count()
{
php_mssql.dll;
$conn = mssql_connect("cary", "liwei", "210124810623");
mssql_select_db(test);
$sql = "select*from table_count";
$result = mssql_query($sql,$conn);
$count = mssql_result($result,0,"count_my");
$sql = "update table_count set count_my = \".($count+1).\"where id = 1";
mssql_query($sql,$conn);
mssql_close($conn);
$count_update = $count+1;
return $count_update;
}
echo mssql_count();
?>
当我浏览时却出现:
Fatal error: Call to undefined function: mssql_connect() in C:\Inetpub\wwwroot\database.php on line 5
而在我的php.ini中没有mssql_connect这个,是不是所有的都没有mssql_connect呢,我该怎么做呢?