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

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

android - Adapter not working with listview -

javascript - PhoneGap show downloaded image in iframe -