I'm not sure how to run a PHP script from Objective-C to retrieve GET data for querying a database. Is there a way to execute and retrieve returned data from a PHP script directly from Objective-C? Better yet, is there functionality to query a MySQL database server directly from iOS/Objective-C? Any thoughts are appreciated.
Jake
you can safely query a mysql database, directly from objective-c.
you must create a php code like this:
and this is the part of objective-c:
and that's it, I hope can I help
There are two types of service that can be used to send data to a web server:
Synchronous NSURL Request
Asynchronous NSURL Request
If you want to only post data to web server then use an asynchronous request because it works in the background and doesn't block the user interface.