[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] creating a .csv file...


> It displays fairly large chunks of data from a mysql db. (sometimes up to
> 1500 lines of data.)
>
> Anyway, I now have a small problem and I was wondering if you guys had a
> suggestion...

Frank,

Part of your solution could be to have your data gathering routines
seperated from your display routines. This way, run modes to "view data
as HTML" and "view data as CSV" could share the same data handling.

Then you might also have one routine that transforms a database data
structure into CSV format. (likewise for HTML format). Then you should
have fairly small run modes to do the actual HTML and CVS display.

I like the idea of using CSV instead of Excel format simply in the
spirit of avoiding supporting Microsoft whenever possible. :)

  Mark

 --
 . . . . . . . . . . . . . . . . . . . . . . . . . . .
   Mark Stosberg            Principal Developer
   suppressed     Summersault, LLC
   765-939-9301 ext 202     database driven websites
 . . . . . http://www.summersault.com/ . . . . . . . .

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.