Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6991903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:33:54+00:00 2026-05-27T19:33:54+00:00

My App needs to connect to and grab data from a MySQL database sitting

  • 0

My App needs to connect to and grab data from a MySQL database sitting on a server. I’ve successfully interfaced with local SQLITE databases in my Apps, but this is the first time I’ve had to interface with a remote MySQL database.

I understand this process involves:

  1. the iPhone App sending this request to the server
  2. some sort of API gets executed and it does the actual "talking" to the Database on the server, and then it returns the query results as XML (or JSON.)
  3. the iPhone then parses the returned information and uses it however it needs to.

What I need help with is step # 2 – the API. I don’t know PHP, I don’t know PERL – do I really have to learn one of these just to write an API? I thought that this iphone-to-remote-MySQL task would be so commonplace that such API’s would already be out there, available freely – but I’m not really seeing anything.

I know Objective-C really well – but should I be using XML or JSON for this? Should I be learning PERL or PHP?

Any tips or advice would be highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:33:55+00:00Added an answer on May 27, 2026 at 7:33 pm

    It’s hard to give you a definite answer without knowing more precisely what you are looking at, but it sounds like your web service/API part should be quite light. In this case, it should be quite easy to write it in any language. If you know Objective-C well, it should be very easy to pick up some PHP or Ruby.

    You mention PHP and Perl. The good thing I see with PHP is that it’s available on any hosting service. For instance, with PHP you can make MySQL queries in a few lines of code.

    Otherwise, if the web service lives on a machine that you own or if you have more flexibility, it might be easier to write something using Ruby and a small framework like Sinatra.

    Regarding using XML or JSON to serialize the data, this will depend on what type of data your API returns. Generally, JSON will be much simpler and the support is good on both side:
    – With Ruby, you can see how easy it is to use JSON here: http://flori.github.com/json/
    – With Objective-C, you would use NSJSONSerialization available starting with iOS5.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My app needs to be able to disconnect from a server and connect to
I'm building a Rails app that needs to connect to a custom TCP data
I have a console app that needs to connect to a remote sql server
I need to let my Rails app connect to a MS SQL Server database
Many times, a Java app needs to connect to the Internet. The most common
My app needs to build a buffer from all the selected cells on a
My silverlight app needs to get back to the host from whence it came
I'm researching how to code an iPhone app that needs to connect to an
First off, I can connect to both databases with SQL Server Enterprise Manager, so
I have a simple web site that needs to connect to an access database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.