title: How to validate the user login credentials in android using PHP, MySql with the help of json
body: <p>I am new to android development. I want to do the login verification, using php mysql and json. </p>
  
  <p>I am only taking care of the PHP, MySql and json part. </p>
  
  <p>If the user enters the username and password in android app, then it needs to check the user table using PHP and Mysql and it needs to send only the status code like 1 or 0 using json. </p>
  
  <p>If username and password matches then the status = 1 needs to send to the android app coding,  else 0. </p>
  
  <p>Status checking process need to be done in Android Coding part. </p>
  
  <p>If status = 1 and I need to redirect to another window in android app .</p>
  
  <p>I have seen lots of tuts and but nothing has helped me.  </p>
  
  <p>So, please kindly help me how to send the <strong>status</strong> from <strong>PHP to android app</strong> and how to <strong>get that status and validate in android</strong>.</p>