egenesis Posted March 6, 2006 Share Posted March 6, 2006 Has anyone worked with error codes on MSSQL/PHPOk if there is an error in the query, it shows something like thisWarning: 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 26Is 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" Link to comment https://forums.phpfreaks.com/topic/4220-catching-error-codescustom-errors/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.