<?php include 'admin/config.php'; $mobile_Q=mysqli_query($con,"SELECT cemail FROM register where cemail='$_POST[mobileNo]'"); if(mysqli_num_rows($mobile_Q)>0){ echo "success"; } else{ echo "mobileNotExists"; } ?>