I am using the following code to add an email address into a databse, how do I ignor the process if the email address is already in the database?
if(!empty($_POST['email'])) {
$email = $_POST['email'];
$email = mysql_real_escape_string($email);
$query = "
INSERT INTO `email_capture` (`email_id`, `email_address`)
VALUES (NULL, '$email');";
mysql_query($query);
mysql_close($email_sql);
}