Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
- AuthorPosts
- June 3, 2013 at 1:45 pm in reply to: Check if email exists in database on submission validator ? #4657
eberswine
ParticipantIt runs perfect and throws the error!
I was just double checking with you to see if it looked alright!
Thanks.
June 2, 2013 at 5:34 pm in reply to: Check if email exists in database on submission validator ? #4644eberswine
ParticipantOk , I have working code here. It works perfect.
Do you see anything wrong with it ?
Right before the //build query code, I put this:
// email validation from josh$emailCheck = mysql_query("SELECT email FROM table WHERE email = '" . mysql_real_escape_string($form->getValue('email')) . "'");
if (mysql_num_rows($emailCheck) > 0) {
echo 'Email exists already. You can only enter once. Sorry.';
die();
}// Build the query
- AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)