I'm sorry I don't have an answer for you, but I thought you might like to know that I've been having the same problem running Firefox 1.0.7 on WinXP. The code does show up in the "Show Source". It doesn't seem to happen all the time, as most of my files work fine, and so I haven't done too...
Have the fields seperated by quotes as well as commas. Most CSV parsers should be savvy enough to understand that anything in the quotes is part of the field (as long as they don't contain quotes as well!) and will thus ignore any commas inside of quotes. Otherwise it depends on the final...
So you're saying that you've set stuff so that:
$stuff ="'1'=>'Book or Booklet','2'=>'Extension Bulletin','3'=>'Map','9'=>'Other','4'=>'Pamphlet','5'=>'Poster','6'=>'Technical Report','7'=>'Video','8'=>'Web Site'";
When you feed that into the array it just takes the whole string and sticks it...
Hi,
I've been banging my head against the wall on this one, so hopefully someone has a better idea of what to do here than I...
I'm trying to make a homepage that randomly selects 6 items from our product database to display. Now, before you go saying that this is easy, there are a few...
icrf/Andrew,
Thanks again for your help with this. I'm pretty new to using regexp's and probably never would have figure this out on my own. Now that I read through the code (and docs) it starts to make sense.
The problem is our supplier isn't currently sending us any quantity information...
icrf,
tried your code on the snippet i pasted above... it worked (almost). the only problem i had was with the final category, "Motion Lamps". It came up as "Motion Lamps"<br>". So, it looks like it works, just need to fix the very last record of the file. I don't suppose you'd want to...
Hey Guys,
Thanks for the replies. I haven't tried using your code yet, but am going to try that now. I figured I'd post some more data so you could see the mess I'm dealing with :) Since this text gets wrapped, I'm putting in \n's just so you know where they are in the file...
Hi,
I have a problem that surpasses my knowledge of regular expressions. Can somehow help me to figure out the logic to solve this problem?
I am downloading a CSV file from a supplier which is "dirty", that is, it has quotes and commas within fields and has line breaks where there should be...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.