I need help for a small project which I have to complete very soon.
The thing is i have data in Mysql with the following fields (fname, lname, email, state, zip, Group, mailed). There is one script which inserts data into all the fields except the fields 'Group' and 'mailed'(this is an enum).
Now i have a CSV file with the same users which are in the database with all the fields. I should look up the database using the email and update appropriate fields, and if the email doesnt exist in the database i should insert the data.
can anyone offer a solution to this.??