Hey i am developing an iPhone app of a existing PhP mySQL website. i want to know, how to pull data from database and display on the phone? after going through several articles , i found out two ways..
1) create a web service, on server end, which will provide all the data in XML format to the device.
2) export php,mysql data in JSON format, and pass this JSON data to the device, which will parse it..
are these two correct approaches?? if yes, which is easier and faster?