I'm using a stored procedure and it checks several things before committing the record, I have each set to generate a different number if an error is raised. How can I get the error in my website and display a message based on the returned number?
IE 0 Successful
1 Already Exists
2 Wrong Format
Thanks for the help