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 8332885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:50:59+00:00 2026-06-09T02:50:59+00:00

I have a CSV file with information about our inventory that gets changed locally

  • 0

I have a CSV file with information about our inventory that gets changed locally and then uploaded to my web server at night. The website also has a copy of the inventory information in its MySQL database that might have also changed.

What I want to accomplish is a two-way sync between in the inventory information in the database and the CSV file that’s uploaded. Parsing the CSV and extracting the info from the database isn’t a problem, but now that I have the two sets of data, I’m struggling to figure out how to sync them.

If a record is different between the CSV and database, how do I know which one to use? I really don’t want to resort to having my users time stamp every change they make on the CSV. Is there some way I can tell which information is more current?

Any help is greatly appreciated.

P.S. Just in case you’re wondering, I tagged this question PHP because that’s the language I’ll be using to accomplish the synching.

  • 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-06-09T02:51:00+00:00Added an answer on June 9, 2026 at 2:51 am

    You should create a time stamp field. And have an application that updates the timestamp overtime the record changes.

    I have a similar app done before where multiple sites sync records up and down based on 3 time stamp. One to track when the record was last updated. One to track when the record was deleted. And one to track when the changes was copied to this pc.

    Then on every pc, i also track when was the last time the records was.synchronized with each other pc.

    This way, the latest record can always be propogated to all the pc.

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

Sidebar

Related Questions

I have imported a csv file containing spatial area information in varchar, then converted
I have a CSV (comma separated values) file that contains student information. The column
I have an input CSV file with a column containing information similar to the
I have .csv file that contain 2 columns delimited with , . file.csv word1,word2
I have a CSV file that goes something like this: ['Name1', '', '', '',
I am dealing with a csv file that has some customer information (email, name,
I have a CSV file, formatted like this: 0001 @ word @ some information
I have written a generic CSV file reader that I'm trying to use to
I have a table that contains information pointing to files stored on a file
I have a table that contains information pointing to files stored on a file

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.