-1

I have an application that has login screen and it will get user name and password first then whenever application will start, username and password will be checked from data base and after that i need some data to be fetched from database and display in iphone application. So how to integrate mysql data base with iphone app?

rohan-patel
  • 5,772
  • 5
  • 45
  • 68
user1263350
  • 83
  • 2
  • 8

2 Answers2

1

you can go through the tutorial for this

raywenderlich provided a great tutorial for this.

vishy
  • 3,241
  • 1
  • 20
  • 25
1

Check this http://dblog.com.au/iphone-development-tutorials/iphone-sdk-tutorial-reading-data-from-a-sqlite-database/ tutorial for connectivity with sqlite.

You will not be able to connect to MySQL directly from the iPhone. You must use some intermediate layer such as a Web application with PHP.

So, you will have something like this:

iPhone POSTING a request to the WebServer using HTTP Web Server connecting to the MySQL database Web Server returning data to the iPhone (XML, plain text) iPhone processing the data You can use this technique to query and insert/update/delete data.

Once i found this library http://www.eval-art.com/2008/09/05/libmysqlclient-for-iphone-2/ for mysql, and i dont aware how it works.

Kiran
  • 339
  • 1
  • 14