I have a MSSQL DB on an SQL server.. my files are on a different server. How do i connect to it?
<?php
$Hostname = "11.111.11.111";
$Database = "DBNAME";
$Username = "USERNAME";
$Password = "PASSWORD";
$Connect = mssql_pconnect($Hostname, $Username, $Password) or die("Unable to connect to Database");
mssql_select_db($Database, $Connect) or die( "Unable to select Database");
?>
This always returns ("Unable to connect to Database"). The IP and username and Password are correct.. what else could be the problem?
I've also tried mssql_connect.. stilll no worky.
Thanks!😃