Hi,

I'm writing a mailing list management system and I've hit a bump. When the visitor provides an Email address to be removed, I want to display an error message if the Email address provided doesn't exist in the list. The Email address is passed in the "Email" variable, and so I tried doing something like this:

Code:
if (!mysql_query("DELETE FROM Subscriber WHERE Email LIKE '$Email'")) {
echo("The Email address you provided does not exist in the database. Please go back and try again.");
exit();
}
This code however, never returns the error message. I'm assuming this is because the delete command is successful even though the Email address doesn't exist in the list. So what would I say to get a response when the Email address doesn't exist?

Thanks in advance !