I'm fairly new to mySQL and php and seeking some input.
I created a database to hold a member directory. It is a single table.
The client uses some contact management software we're they keep track of their members. Therefore, the client does not want to enter the information through a form on the website. Instead the client wants to export a comma delimited file from the program and then use that exported file to update the database.
What would be the best approach to do this???
MySQL's LOAD DATA works fine as long as the original data does not change. If a member is removed or a primary key is changed, new rows are added but the old ones (that should of been updated) remain.
I figured whenever the client goes to update the db, a script deletes all data from the db, then imports the text file. This doesn't seem like a very efficient approach to me though.
Maybe importing the data into a temporary table and then comparing it to the actual table would work, though I am not sure how to go about doing this.
Sorry about the long post, any help would be appreciated,
thanks in advance
I created a database to hold a member directory. It is a single table.
The client uses some contact management software we're they keep track of their members. Therefore, the client does not want to enter the information through a form on the website. Instead the client wants to export a comma delimited file from the program and then use that exported file to update the database.
What would be the best approach to do this???
MySQL's LOAD DATA works fine as long as the original data does not change. If a member is removed or a primary key is changed, new rows are added but the old ones (that should of been updated) remain.
I figured whenever the client goes to update the db, a script deletes all data from the db, then imports the text file. This doesn't seem like a very efficient approach to me though.
Maybe importing the data into a temporary table and then comparing it to the actual table would work, though I am not sure how to go about doing this.
Sorry about the long post, any help would be appreciated,
thanks in advance