Results 1 to 4 of 4

Thread: suppress warnings [Resolved]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    suppress warnings [Resolved]

    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:
    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
    to become:
    Code:
    Couldn't connect to SQL Server on xxx.xxx.xxx.xxx
    (removed servername for obvious reasons)

    How do I do that?
    Last edited by ober0330; Jan 23rd, 2004 at 11:10 AM.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width