need to pass data to android app through ajax by using php. the data is pulled from mysql database through a select query
please provide me code example how to perform the task i had search the internet and i find the below code for reference http://www.grobmeier.de/android-does-not-fire-ajax-reqests-because-they-are-caches-ajax-requests-at-least-on-jquery-mobile-10072011.html#.UGvLbU3A-RI
how to perform the select query to fetch the data array. please correct me if the example is not proper.
$.ajax({
url: "yoururl.html",
context: document.body,
cache : false,
data: {
username : $('#username').val(),
password : $('#password').val(),
},
success: function ( data ) {
// do something
}
});