Hi,
I'm inserting records into a mysql database through a form in php. Is it possible to catch an error thrown by the msql database and redisplay the form that is being submitted so the entered values are not lost? I know I can check the values with javascript before the form is submitted, but I was wondering if this can be done with php and try catch blocks??
I'm using mysql 5.0.16 and php 5.1.1
Thanks for your time.
Start Free Trial