email value is passed from one page to another through the following
$.ajax({
type:'post',
url:'email.php',
data:{email: email},
success:function(msg){
alert(msg);
}
});
$s show the email id.I echoed $echeck and $echk for testing. $echk doesn't return 1.
$s=$_POST['email'];
echo $echeck="select email from register where email=".$_POST['email'];
echo $echk=mysql_query($echeck);
echo $ecount=mysql_num_rows($echk);