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:
Expand|Select|Wrap|Line Numbers
- <?php
- $conn = mssql_connect('212.97.133.11','baconso_flemming','mypassword');
- mssql_select_db('Baconso_flemming',$conn);
- ?>
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
Expand|Select|Wrap|Line Numbers
- <?php
- phpinfo();
- ?>
I also did another little file:
Expand|Select|Wrap|Line Numbers
- <?php
- if (function_exists('mssql_query')) {
- echo "MSSQL functions are available.<br />\n";
- } else {
- echo "MSSQL functions are not available.<br />\n";
- }
- ?>
Can anyone help me get my connection to work???????
Any ideas are more than welcome.........