0

Brief: Ok. I'm looking to implement and create a database with several tables to put in a iOS app. I know SQLite is an option but can you put SQLite online so data stays current on each device? I haven't made a SQLite database but I've done a MySQL through PHP.

Question: What route should I use? I've just heard of SQLite and don't want to waste time. Please in your answer say how I can achieve an implement this table. I currently have a site so could I host a SQLite database. If so please link to a tutorial/guide. Also if anyone has found one: a tutorial to implement this database in Xcode.

Just looking for the best route to go but I'm not looking to pay for something like Kumlos.

1 Answer 1

4

You can make databse into your server and one sqlite in you iOS application. Then you can synchronize them. Make one php script that retrive information from database and the convert it to JSON. From you app download this JSON parse it and then save it to the db. This is approach that I use.

Update: http://www.raywenderlich.com/2941/how-to-write-a-simple-phpmysql-web-service-for-an-ios-app

Sign up to request clarification or add additional context in comments.

4 Comments

Have any links that could help?
Ok thanks but what if I wanted to put my data in a nsarray like [listOfItems addobject:@"Item1"]
What do you want to pot in an array?
I have products and their descriptions and prices. I plan on feeding the array to a table

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.