Re: Help Needed with CSV & PHP

From: Date: Thu, 06 Jul 2000 00:23:46 +0000
Subject: Re: Help Needed with CSV & PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-5112@lists.php.net to get a copy of this message
Chris Adams wrote: > > I was going to try to switch over to using Comma Seperated Values (CSV) > > in PHP, with something like this: > > while ($dataarray[$viewcard-1] = fgetcsv($dataarray[$viewcard-1],4000, > > ":")) { > http://gateway.digitaria.com/~chris/php/csv2table/csv2table.php > has some > generic code for displaying CSV as an HTML table. In CSV it's more or less > accepted that data containing commas should be enclosed in quotes (quotes in > data are escaped as \"). But if you are using CSV to seperate user input, you can't just tell folks to enclose commas in quotes... Mike -- Mike A. Gifford OpenConcept Consulting Mike@OpenConcept.On.Ca Http://www.OpenConcept.On.Ca Web Design, Hosting, Graphic Design & Site Promotion Featured Site --> Http://WTOAction.Org

« previous php.general (#5112) next »