Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5967267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:55:09+00:00 2026-05-22T19:55:09+00:00

I was brainstorming how I should handle this. This is how the application is

  • 0

I was brainstorming how I should handle this. This is how the application is going to work:

  1. User enters multiple pieces of data into app
  2. App stores data into SQLite database
  3. User hits SYNC button and app will pass all new/updated/deleted info to site PHP and update MYSQL.

I was thinking I can do a loop where it sends (and receive) one row at a time to mysql or I can use a string builder to build a XML, and pass (and receive) the XML string to PHP to process. The xml will have tag data specifying if the element is to be added, deleted or updated.

I figure the XML is a better option, but I’m coming here for opinions how I should push multiple rows to be added/deleted or updated to my MYSQL because I feel there’s probably a more efficient/easier way of doing this.

Thanks!

–UPDATE–

Here’s some helpful links I found of JSONArrays for those seeking similar information as I am about Android SQLite to PHP MYSQL.

  1. Nice tutorial about JSONArrays in PHP: http://webhole.net/2009/08/31/how-to-read-json-data-with-php/
  2. Another tutorial about JSONArrays in Java: http://www.androidcompetencycenter.com/2009/10/json-parsing-in-android/
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:55:10+00:00Added an answer on May 22, 2026 at 7:55 pm

    Ah, opinions. Painful things though: everyone has one and everyone thinks their opinion is better than the next persons’.

    I’ve implemented a system that is pretty much identical: I used JSON for it though. There is no intrinsic issue with using XML: whatever translation layer you are comfortable with is probably fine. JSON was (for me) a bit more compact than XML, required less code on both sides (json_decode is your friend) and seemed to me to be an easier row to hoe than using XML. However PHP’s simplexml would probably work fine as well.

    If you’re doing this from scratch you might want to look at one of the systems with automatic data syncing like Mobile Couchbase (see http://www.couchbase.com/products-and-services/mobile-couchbase): would require a fair bit more tooling and a bigger server/client resource footprint but might get you there faster.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the middle of brainstorming a cloud sync solution for a Core Data
I'm brainstorming an application where there could be several interrupts per second from two
Currently brainstorming release names for an application. Theme is mythological creatures. What are some
This is a brainstorming question about what's possible in Java (or not). I want
I'm doing QA on this new app I've created using CI. With pagination implemented,
I'm brainstorming a search function for the user that is similar to iTunes Smart
I'm working on a project where I'm using mindmeister.com as a tool when brainstorming
I'm brainstorming some ideas around a pattern to use for the following scenario. I
To preface this question: I've never actually done iPhone development. Haven't even downloaded the
This thread is a follow up to my previous one . It's in fact

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.