Pretty much what it says on the title. I am trying to connect to a Microsoft SQL Server database with a password which contains an ampersand:
<?php
$mssqlHost = "Reports.autotask.net,1433";
$mssqlUser = 'NetworkROI';
$mssqlPass = 'Rosdcpe7&Essdcscpalda'; //has been changed
$mssqlATDB = 'TF_3745000_WH';
$SQLConnect = mssql_connect($mssqlHost,$mssqlUser,$mssqlPass)
or die('Could not connect to SQL Server on '.$mssqlHost
.' '. mssql_get_last_message());
?>
On a possibly related matter: I'm getting an “Error 101 (net::ERR_CONNECTION_RESET): Unknown error.” message when I try to connect.
How do I escape it?
Jonesy