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

Popular posts from this blog

java - Unable to make sub reports with Jasper -

sql - The object name contains more than the maximum number of prefixes. The maximum is 2 -

Java Web Service Soap fault exception client -