Hi Guys I hope you can help, I'm trying to stop SPAM on my website, as some of it fills up my inbox on my web host. I have around 5 users a day trying this spam method. All I'm looking for is a simple IF stement with a LIKE condition on the end (see below). I've looked into PHP tutorials and I dont see a LIKE condition. IF "new_user_email" like "@mywebsite.com" then return false; END IF; As you well know you can use anything before @mywebsite.com for it to end up in your inbox. If you need anymore info then let me know. thanks....
This should be the most efficient way to perform this. if(strpos($email,'@mywebsite.com') !== false) { return false; } PHP: