php - doesn't return exact value -
email value passed 1 page through following
$.ajax({ type:'post', url:'email.php', data:{email: email}, success:function(msg){ alert(msg); } });
$s show email id.i echoed $echeck , $echk testing. $echk doesn't return 1.
$s=$_post['email']; echo $echeck="select email register email=".$_post['email']; echo $echk=mysql_query($echeck); echo $ecount=mysql_num_rows($echk);
you need quote string value in sql queries.
echo $echeck="select email register email='".$_post['email']."'";
Comments
Post a Comment