Re: csv export...?
| From: | David T-G | Date: | Fri, 09 Jan 2004 16:11:51 +0000 |
| Subject: | Re: csv export...? | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-32343@lists.php.net to get a copy of this message | ||
Viorel, et al --
..and then Viorel Dragomir said...
%
% It looks like is not so simple. But is not difficult at all..
Right.
%
..
% while($row = mysql_fetch_row($result)){
% print implode(",", $row);
I agree that implode is a better way to go. I had to have my fields
export in a particular order when they were stored differently, so I
loop through my format array to get the order of the keys to pull from
the data array.
HTH & HAND & HNY
:-D
--
David T-G * There is too much animal courage in
(play) davidtg@justpickone.org * society and not sufficient moral courage.
(work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/ Shpx gur
Pbzzhavpngvbaf Qrprapl Npg!