Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. arclyte

    PHP options in firefox

    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...
  2. arclyte

    sql -> csv (with commas in data)

    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...
  3. arclyte

    php checkbox array with string variable argument.

    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...
  4. arclyte

    Random selection from a MySQL db

    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...
  5. arclyte

    Regular expression to fix a "dirty" csv file

    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...
  6. arclyte

    Regular expression to fix a "dirty" csv file

    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&quot;<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...
  7. arclyte

    Regular expression to fix a &quot;dirty&quot; csv file

    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...
  8. arclyte

    Regular expression to fix a &quot;dirty&quot; csv 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...

Part and Inventory Search

Back
Top