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"
Catching Error Codes/Custom errors
No replies to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users