Hi there
I have a table in MySQL database on my web server that contains stock levels amongst other things. twice a day I get emailed an updated stock list in CSV format.
What I need is to update the stock quantities in my table with the values from the CSV file.
I have managed to successfully upload the CSV file into a different table I generated but I have no idea how to get the stock amounts updated.
The CSV file and the table have a product ID field which contains the unique reference to the product. In the CSV file there are products I do not list and in my table there are products that are not in the CSV file. These need to be ignored.
I need to somehow be able to tell it to look for the product ID and where it matches fill with the updated stock quantities.
Can anyone help me with this?
Thanks a lot.
I have a table in MySQL database on my web server that contains stock levels amongst other things. twice a day I get emailed an updated stock list in CSV format.
What I need is to update the stock quantities in my table with the values from the CSV file.
I have managed to successfully upload the CSV file into a different table I generated but I have no idea how to get the stock amounts updated.
The CSV file and the table have a product ID field which contains the unique reference to the product. In the CSV file there are products I do not list and in my table there are products that are not in the CSV file. These need to be ignored.
I need to somehow be able to tell it to look for the product ID and where it matches fill with the updated stock quantities.
Can anyone help me with this?
Thanks a lot.
Comment