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