Access an online SQL database?

Discussion in 'iOS Programming' started by JavaWizKid, Oct 27, 2009.

  1. macrumors 6502a

    Sep 18, 2008
    I've read this forum and it suggests that it is a bad idea to connect to an online database directly from the app. How do some apps like AroundMe and Showtimes get their data? I'm in need to access an online database which will constantly change so I cannot store it locally. Any ideas?
  2. macrumors 603


    Jul 23, 2002
    Fuquay Varina, NC
    It is a bad idea to connect directly to a database. Instead, as the thread explains, its much better to talk to remote services using HTTP/AJAX/RMI/etc, which in turn are backed by a database.
  3. thread starter macrumors 6502a

    Sep 18, 2008
  4. macrumors 68030


    Sep 2, 2008
    You would typically use NSURLConnection to transfer requests to your server and to get results back. You could have a script on the server, say in php, that processes the request and returns the result.

Share This Page