Forum Moderators: coopster
I have an ID colum which is the primary key and i also have one of the other Columns as a Unique ID to stop people adding duplicates. This works fine and if this column is a duplicate the data is not added to the database. However whether data is added or not you get the same message after you complete the form.
What i want is different messages so that when you try and enter a duplicate it returns an error message possibly showing you the record that already exists.
If you want specific messages for different classes of problems, you can use the error code
[dev.mysql.com...]
or the php function mysql_error().