HelpSpot Help Desk Software | HelpSpot Blog | HelpSpot Support

Mssql_pconnect()

I cant connect using php code,

<?php
function Conectarse()
{
global $link;
if (!($link=mssql_pconnect("Samples\SQLEXPRESS","sa","11111111", true)))
	
{
exit();
}
if (!mssql_select_db("xxxxxx",$link))
{
exit();
}
return $link;
}
Conectarse();
?>

and this error occur
**Warning** : mssql_pconnect() [[function.mssql-pconnect](http://127.0.0.1/function.mssql-pconnect)]: Unable to connect to server

im using xampp 1.7.3, php is 5.3.1 and SQL Server is 2012 also I use 2008 same error. I also make in ODBC no error for test connection.

I hope anyone can help me.,