i have simple table with e-mails only. i want to check if an e-mail exists or not and display message after that...
<? if ($submit_email != '') {
$sql_newsletter = mysql_query("SELECT * FROM newsletter");
// here i have to check if there is same e-mail in the table and if is then display
echo "user exists";
// or if not then display
else {
echo "thanks";
}
}