connecting to MS-SQL Server 7.0
Posted on 2000-03-22
I have a simple question out here!
I faced a little problem with MSSQL error hiding...
This is my script; it checks if password or login are incorrect by trying to connect to the database, but when it can't connect it not only show's my message: "Cannot grant Access...", but also MSSQL standard message:
Warning: MS SQL message: Login failed for user 'Dmitry'. (severity 14) in C:\InetPub\wwwroot\wlr\login.php3 on line 6
Cannot grant Access to the DataBase!
So, here's the simple script:
if (!$conn = mssql_connect("wap", $log, $pwd)) echo "Cannot grant Access to the DataBase!";
mssql_select_db("NorthWind",$conn) or die ("Can't select database!");
$log and $pwd are variables that are returned from previous form.
10x in advance,