Jump to content


Catching Error Codes/Custom errors

  • Please log in to reply
No replies to this topic

#1 egenesis

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 06 March 2006 - 05:27 PM

Has anyone worked with error codes on MSSQL/PHP

Ok if there is an error in the query, it shows something like this

Warning: mssql_query() [function.mssql-query]: message: Violation of UNIQUE KEY constraint 'IX_categories'. Cannot insert duplicate key in object 'categories'. (severity 14) in c:\Inetpub\wwwroot\vault\createcats.php on line 26

Is there a way to display a custom message instead of the system generated message? like "Duplicate Category Found in the Database, Please go back and enter a new category"

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users