mr.vetal
Guest
Помогите с конектом к базе SQLSERVER
Следующий код:
<html>
<body>
<?php
$con = mssql_connect("BUHSERVER", "sa", "sspp");
mssql_select_db("BUHPDPU", $con);
$sql= "SELECT * FROM tPeople WHERE pnPeople < 5";
$rs= mssql_query ($sql, $con);
echo "The field number one is: ";
echo mssql_result ($rs, 0, 0);
mssql_close($con);
?>
</body>
</html>
выдет ошибку:
Fatal error: Call to undefined function: mssql_connect() in c:\localweb\index.php3 on line 4
Следующий код:
<html>
<body>
<?php
$con = mssql_connect("BUHSERVER", "sa", "sspp");
mssql_select_db("BUHPDPU", $con);
$sql= "SELECT * FROM tPeople WHERE pnPeople < 5";
$rs= mssql_query ($sql, $con);
echo "The field number one is: ";
echo mssql_result ($rs, 0, 0);
mssql_close($con);
?>
</body>
</html>
выдет ошибку:
Fatal error: Call to undefined function: mssql_connect() in c:\localweb\index.php3 on line 4