Jump to content

importing excel into mysql problem...


chelnov63

Recommended Posts

Hi i have a 'business contacts' excel sheet which i need to import into my mysql database.. i know how to convert the excel sheet into a csv file and import it into a database fine..but for one problem... one of the fields in the excel sheet is a 'general notes' field. Now the notes in this field for example maybe in the format:

 

12/2/2008NDC Said to contact Joe Blogs, Marketing Comms Director who deals with agencies.
6/11/2007DMC Spoke to Joe Blogs, his PA. Not reviewing.
22/2/2007DMC Received mailer, but nothing coming up. OK to KiT.
Send info on 27.11.06 especially including CRM/loyalty  as he will have joined co then.

 

Now if it wasnt for the general notes field, the exporting to a csv file is no problem (as all the other fields are just one liners)... but due to this the csv file gets completely messed up... does anyone know a solution to this problem?

 

Thanks in advance....

Link to comment
Share on other sites

sorry mate..not sure i follow, havent done much importing before.. i have been supplied the information as an excel (.xls) file.. are you saying I can directly import it into mysql from the excel file, without using a .csv file? thank for your help mate!!

Link to comment
Share on other sites

sorry mate..not sure i follow, havent done much importing before.. i have been supplied the information as an excel (.xls) file.. are you saying I can directly import it into mysql from the excel file, without using a .csv file? thank for your help mate!!

Correct. There are PHP libraries (such as the one listed in my signature) that have been developed to read directly from the excel file

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.