נסה את זה:
HTML קוד:
$result = mysql_query("INSERT INTO `emails` (email_address) VALUES ($_POST['email_address'])") or die(mysql_error());
$search = mysql_num_rows($result);
if ($search == 0)
{
echo("<font color=\"red\">האימייל נוסף בהצלחה</font>");
}
else {
echo("<font color=\"red\">אנא בחר אימייל אחר</font>");
}