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:
[CODE=php]
<?php
$conn = mssql_connect(' 212.97.133.11', 'baconso_flemmi ng','mypassword ');
mssql_select_db ('Baconso_flemm ing',$conn);
?>
[/CODE]
I get the following error message:
Fatal error: Call to undefined function mssql_connect() in C:\Inetpub\wwwr oot\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_m ssql.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
[CODE=php]<?php
phpinfo();
?>
[/CODE]
I can't see any information about mssql in the description that appears on the screen.
I also did another little file:
[CODE=php]<?php
if (function_exist s('mssql_query' )) {
echo "MSSQL functions are available.<br />\n";
} else {
echo "MSSQL functions are not available.<br />\n";
}
?>[/CODE]
it returned: MSSQL functions are not available.
Can anyone help me get my connection to work???????
Any ideas are more than welcome........ .
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:
[CODE=php]
<?php
$conn = mssql_connect(' 212.97.133.11', 'baconso_flemmi ng','mypassword ');
mssql_select_db ('Baconso_flemm ing',$conn);
?>
[/CODE]
I get the following error message:
Fatal error: Call to undefined function mssql_connect() in C:\Inetpub\wwwr oot\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_m ssql.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
[CODE=php]<?php
phpinfo();
?>
[/CODE]
I can't see any information about mssql in the description that appears on the screen.
I also did another little file:
[CODE=php]<?php
if (function_exist s('mssql_query' )) {
echo "MSSQL functions are available.<br />\n";
} else {
echo "MSSQL functions are not available.<br />\n";
}
?>[/CODE]
it returned: MSSQL functions are not available.
Can anyone help me get my connection to work???????
Any ideas are more than welcome........ .
Comment