title: Android/PHP - Best way to synchronize local and remote databases
body: <p>I have an Android app that needs to receive some data from the webserver. I already got everything working, my question is.. What's the best way to synchronize data from the webserver if I'm always adding some data to it's remote database through a HTML form?</p>
  
  <p>I thought of putting a timestamp, then I can receive the data with the timestamp, I would be able to compare the timestamps with each data entry from my Android app database, then, update or add the information to my local database.</p>
  
  <p>What's the best way to do it? Should I put a timestamp to each entry I put in the remote and local server? If yes.. How does timestamp works in PHP(MySQL) and Android(SQLite)? </p>
  
  <p>Thanks in advance! ;D</p>