I want to transfer data from PHP page which import data from MySql, so I need to show this data on my mobile app (Cordova), I use javascript.
this is the PHP code which I use:
if($count == 1) {
          echo $name .$points . $gold;
          
      }else {
         echo "Your Login Name or Password is invalid";
      }and this is the Jquery code:
$.ajax({
 type: 'POST',
 url: 'http://xxxxxx/login.php',
 data: datastring,
 success: function(data) {
  alert(data + 'worked');//     does nothing
 }
});