I am creating an application that the user presses a button and every time they press the button, it adds a record in the array. I need to get this data into a external mysql database, the best method seems to be through php using JSON.
How do I convert my array into a JSON array? and what does the php code look like for inserting the array into the database?