coonect ot MSSQL 7.0
Posted: Wed Jul 04, 2007 6:02 am
I figure out from my coding style using ms_sql_connect fail to connect to server. I supplied the ip of the server. What am I missing?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2.1. When asking a question, be as specific as you can be, provide the relevant code and any other information that is helpful in a concise and coherent manner. If you are not sure how to do that, read these guidelines.
Code: Select all
$myServer = "202.157.***.***";
$myUser = "vmadmin1";
$myPass = "vmsql15062002111";
$s = mssql_connect($myServer, $myUser, $myPass) or die("Unable to connect to server: $myServer");
$myDB = "vmtmx";
$d = mssql_select_db($myDB, $s) or die("Unable to connect to database: $myDB");Code: Select all
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: 202.***.***.220 in C:\xampp\htdocs\jobvm2\js_form.php on line 88