I have a database with 2 UNIQUE columns for phone and email.
it's working to block duplicate entries, however I'm having a problem managing the error message to something that will make sense to the user.
How do I overwrite the default error message with one that would use something like this to plug back into the page
PHP Code:
if ($Result1) {
$dbinsert = true;
}
if (!$Result1) {
$error['already_reg'] = 'The email or phone that you entered is already registered. You can only enter once. If you feel that this is an error, please contact the webmaster at bugs@digitaledgecc.com.';
}
how would you post to a DB at the same time as sending a mail script? I can't seem to get it to do both at the same time. I can get it to do one or the other.