Question Locked

i need help please

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm writing the following piece of code to get some information from an SQL Server database....
" . $numRows . " Row" . ($numRows == 1 ? "" : "s") . " Returned

";

//close the connection
mssql_close($dbhandle);
?>

but when i try to preform this page i get the following error...

Fatal error: Call to undefined function mssql_connect() in C:\AppServ\www\conn.php on line 8

can anyone suggest a solution for this error....

2 replies

by jaqui

changing the connection call to have the semi-colon at the end of the line.
$dbhandle = mssql_connect($myServer, $myUser, $myPass);

This discussion is closed to new replies.