I have a quiz form that is connected to my database, however I need to prevent duplicate email entries being inserted. I have tried the following:
//Check for d
Two problems:
checkEmail() function so it's never running. You should either remove that code from the function or just call the function where it needs to run.where('email','=',"$email") instead.