Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Syncing a basic MYSQL database with PHP front end with an IOS app Hi, I have cre

ID: 3809603 • Letter: S

Question

Syncing a basic MYSQL database with PHP front end with an IOS app

Hi, I have created a mysql database with a PHP front end which stored various information. Now I would like to create an IOS app which contains a general knowledge quiz and the results from this (how many correct answers and how many wrong access) are sent to the database along with the user ID. The only issue is I'm unsure how to go about this? So I'm looking for the best method to do this, JSON seems the prefered manner but I'd like some advise

Explanation / Answer

From the question posted it is not clear what information is being stored in the mysql database (DB). I presume in the DB you are storing user information and quiz information (questions, options, answers, results).

iOS SDK supports classes for parsing both JSON and XML data. Programmatically, working with JSON is relatively simpler compared to XML.

Further, the iOS application use case you mentioned is quite simple. As such my recommendation is to use JSON.