So, I have an iOS App that need to do a MySQL command:
INSERT INTO SeB
VALUES ('123123','321321')
I don’t know how to do this command with Objective-C. Any tips?
PS: The database is online.
Thanks a lot!!!
Alberto
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.
It’s generally a bad idea to open up a MySQL database on the Internet like this, for security reasons.
Instead, you should set up some kind of web server that would accept requests and then connect to the database.
For example, your iOS app would send a regular HTTP request to your server (like
http://example.com/request/?data1=123123&data2=321321; the web server script would then be able to check the input and then write to the database.There are plenty of options for the web site — PHP, Perl, ASP, Ruby, etc.