Hello
I have problems connecting to my MSSQL through php.
I have a microsoft windows server 2003, web edition with php5 installed and Microsoft SQL Server: SQL Server 2005 Express Edition as my platform.
my connection string is as follows:
-
<?php
-
$conn = mssql_connect('212.97.133.11','baconso_flemming','mypassword');
-
mssql_select_db('Baconso_flemming',$conn);
-
?>
-
I get the following error message:
Fatal error: Call to undefined function mssql_connect() in C:\Inetpub\wwwroot\connopenphp.inc on line 2
I have done all the usual things that has to be done in order to get mssql to work with php such as removing the ';' from the extension=php_mssql.dll in my php.ini file.
I have downloaded the proper version of ntwdblib.dll (vers. 2000.80.194.0) and copied certain files to windows/system32 directory such as the ntwdblib.dll file and the php_mssql.dll file.
When i run a little file i made called info.php
I can't see any information about mssql in the description that appears on the screen.
I also did another little file:
- <?php
-
if (function_exists('mssql_query')) {
-
echo "MSSQL functions are available.<br />\n";
-
} else {
-
echo "MSSQL functions are not available.<br />\n";
-
}
-
?>
it returned: MSSQL functions are not available.
Can anyone help me get my connection to work???????
Any ideas are more than welcome.........