I want to stop warnings from being printed to the screen. Like when my DB is shutdown, I want it to only say what is in my "die" portion of my code instead of saying everything in the warning.
I want this:to become:Code:Warning: mssql_connect(): Unable to connect to server: xxx.xxx.xxx.xxx in C:\Program Files\Apache Group\Apache2\htdocs\conn.php on line 17 Couldn't connect to SQL Server on xxx.xxx.xxx.xxx
(removed servername for obvious reasons)Code:Couldn't connect to SQL Server on xxx.xxx.xxx.xxx
How do I do that?




Reply With Quote