How do i insert data from an iPhone app to the mysql database using C? I have a web app that inserts into database but now looking into iphone.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In short – you need to have a server (the one with the MySQL database) which defines a layer of ‘services’ that the iOS application can call. You could design this service layer in PHP, Python, NodeJS, etc…. It doesn’t matter how you do it – but you need to have some service layer to handle the interactions.
Another (not recommended) approach would be to access MySQL directly using a driver written in Objective-C. Here is one such driver:
http://www.karlkraft.com/index.php/2010/09/17/mysql-for-iphone-and-osx/