I\'m working at an app which would make a POST ajax request to a PHP script on my server. The script would query the database and return a row of records, as an array. (One
You can return the JSON encoded string to the JS by echoing it with a Content-Type of application/json.
See above answer for the rest.