phpld - Importing db from excel file???

Discussion in 'Directories' started by axemedia, Feb 9, 2007.

  1. #1
    So i built my categories database in excel and I have no idea how to import it into mysql. What kind of file do i need to store it as?

    Lost:confused:

    Help an0n, help!
     
    axemedia, Feb 9, 2007 IP
  2. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #2
    send me your excel spreadsheet so i can take a look.
     
    an0n, Feb 9, 2007 IP
  3. hhheng

    hhheng Banned

    Messages:
    2,633
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Why you don't save it as txt and add sql script inside and then execute the script in phpmyadmin to load your categories?
     
    hhheng, Feb 9, 2007 IP
  4. axemedia

    axemedia Guest

    Messages:
    1,070
    Likes Received:
    79
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Sounds good in theory but I can't seem to find the right format to save it in that matches and SQL file I export. All kinds of quotes and brackets in places and they dont exist in the excel version.

    I don't want to manually edit the text file to add these quotation marks. Too much tedious work. I'll never find my errors if I miss a single one of these --> '
     
    axemedia, Feb 9, 2007 IP
  5. axemedia

    axemedia Guest

    Messages:
    1,070
    Likes Received:
    79
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well. I got it done.

    Was brutal. Had to save the excel as a CSV then open in text editor to use "find-replace to switch all the comma separators to quote-comma-quote ( "," ) while at the same time keeping the comma's intact within the category description fields and keyword fields.

    Brutal. A few hours of work that should have been able to be done by a few clicks of the mouse.

    But happy now.:)

    Now to figure out how to edit those damn .tpl template files.
     
    axemedia, Feb 9, 2007 IP
  6. Melfel

    Melfel Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I have done many data imports for phpld from other directory scripts. If you need help again I will help you.
     
    Melfel, Feb 9, 2007 IP
  7. aditya_sfs

    aditya_sfs Peon

    Messages:
    2,271
    Likes Received:
    389
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Another good way will be to use vbScript inside MSExcel to export the data directly int SQL...though this will be a bit tough
     
    aditya_sfs, Feb 10, 2007 IP