"Warning: mssql_select_db() [function.mssql-select-db]: message: Database 'asigurari' does not exist. Make sure that the name is entered correctly. (severity 16) in C:\xampp\htdocs\info.php on line 4
"
The database exists, i should move it to a specific directory or what? Here's my code:
$conn = mssql_connect('localhost\SQLEXPRESS', '', '')
or die("Unable to connect to MSSQL");
$selectdb = mssql_select_db('asigurari',$conn);
if($selectdb)
echo"Conexiune realizata"."
";
";
?>
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Satyapriya NayakPosted Apr 15, 2013, 1:55 AM
http://php.net/manual/en/function.sqlsrv-connect.php
http://php.net/manual/en/function.mssql-connect.php
http://webcheatsheet.com/PHP/connect_mssql_database.php