I have a website that requires a visitor to register in order to make a post. I have one or two users that are violating the terms and every day I'm having to delete them. They just re-register, sometimes using a new email address (always a gmail account though).
I want to create a database and enter banned email addresses. Then I want to populate an array using these banned email addresses. When someone tries to register I want to check to see if the email address they're using is in the banned email array, if so the registration will fail.
I can make the database and put the information in it OK, but I'm not familiar with arrays and don't know how to write the code to populate an array from a database or how to write the query to check to see if the email is in the array. Can someone help me with this?
Thanks
I want to create a database and enter banned email addresses. Then I want to populate an array using these banned email addresses. When someone tries to register I want to check to see if the email address they're using is in the banned email array, if so the registration will fail.
I can make the database and put the information in it OK, but I'm not familiar with arrays and don't know how to write the code to populate an array from a database or how to write the query to check to see if the email is in the array. Can someone help me with this?
Thanks
Comment