Trying to update tables with PHP and CSV import to MySQL DB. And I need some help.
I have two tables: users and balance.
users
ID|user_login|
1 |name1 |
2 |name2 |balance
user_id|user_balance|
1 |1000 |
2 |2000 |
Query for operate:
SELECT users.user_login, balance.user_balance
FROM `users` , `balance`
WHERE `ID` = `user_id`
CSV file have this structure:
name1;3000
name2;5000
But I don't know how to update that two connected tables with ID and user_id form CSV.
I will be glad for any help and advice. Thanks!