i need connect to mssql
and i write this code
<?php
$hostname = "remotehost";
$username = "username";
$password = "userpass";
$dbName = "userdatabase";
MSSQL_CONNECT($hostname,$username,$password) or DIE("DATABASE FAILED TO RESPOND.");
?>
but i get a error
Warning: MS SQL message: Login failed- User: _ Reason: Not defined as a valid user of a trusted SQL Server connection. (severity 14) in my programm
please help me connect to mssql
or link me to articles about this problem
i am sorry my bad english