Jump to content

Help inserting data from a csv file to mysql using php


adman4054

Recommended Posts

I need to insert a new column within a table in an exsisting db. Here is what im looking for.

 

I want PHP to look at the data in one column called "CID" in the CSV file, match data in a field in MYSQL also called "CID" and insert a record from a column in the CSV called "Private" into the field in the MYSQL db also called "Private.

 

Really appreciate someone pointing me in the right direction. Thanks.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.