Im new to JSON and have whats probably a basic question. I have some MySQL rows I want grab with Php, and then JSON encode for a response to an iphone request.
so the questions are:
1) Whats the format for the array to encode this info?
2) Where the does the response code (200) fit into it?
Try this tutorial. http://mobileorchard.com/tutorial-json-over-http-on-the-iphone/
Basically on the PHP side, write a script that fetches the MySQL data and then echo back the output of json_encode. The iPhone side will call to the URL of this script using the method above.
I would suggest you take a look at json.org and familiarize yourself with the JSON format.