Viewfinder Design Support Forum » Miscellaneous

Importing csv - again!

(1 post)
  • Started 2 years ago by alexeiz
  • This topic is not a support question

  1. alexeiz
    Member

    I really would like to know, did anybody succeed to import csv file of prospect into the mailing list?

    Here is a small test list I tried:

    first_name,last_name,email
    Alexei,Zoubov,azops@azsystems.net
    Alex,Mems,azmems@azsystems.net
    Bob,Sheppard,mships@alexeiz.com
    wsMarina,Kras,mkbiz@marinak
    Alexei,Zoubov,azsite@alexei.ws
    Al,Bad,adtik@azsystems.net

    The first error I got was:

    Error: incorrect field name (0) used or non-existant field

    That's obviously incorrect, I looked at the script both in common => functions.php and in common => list.php

    I'm not a big time programmer, but I've written quite a few scripts of comparable complexity. My first impression was - this particular section of script just can't work!

    THe variable $key is supposed to be found in $subfields array, but the key here is numeric! for example: key = 0 - $dat = first_name. So, we should be looking for $dat, not
    $key.

    If I'm wrong, please correct me. I discovered more strange lines (like in the function parse_csv_file, that generates an error, saying that $enclosure should be a character.)

    May be I got some old version that wasn't debugged?
    Is there a new one?

    Sincerely, Alexei

    Posted: 2008-08-07 05:51:07 #

RSS feed for this topic

Reply

You must login to post.