suppose you have field in database called email and php form field named email then
$email = mysql_real_escape_string($_POST['email']);
$sql = "SELECT * FROM users_table WHERE email='$email'";
$res = mysql_query($sql)
//email not found
// nothing came from db perhaps errors or such
//code totally untested!