Re: csv problem.. read csv from var
| From: | bedul | Date: | Thu, 22 Feb 2007 09:48:16 +0000 |
| Subject: | Re: csv problem.. read csv from var | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43119@lists.php.net to get a copy of this message | ||
nope.. u don't give me wrong code
----- Original Message -----
From: "Niel Archer" <niel@catweasel.org>
To: <php-db@lists.php.net>
Sent: Saturday, February 17, 2007 2:43 AM
Subject: Re: [PHP-DB] csv problem.. read csv from var
> Hi
>
> sorry, I misunderstood your problem, it was not too clear to me as the
> code you list shouldn't produce the output you supplied.
>
> try this:
>
> $array = explode(',', $csv);
>
> print "<br>= " . $array[0] . "\n";
> print "<br>= " . $array[1] . "\n";
>
> for ($i = 2; $i < count($array); ++$i) {
> $txt.= "<br />=" . $array[$i] . "\n";
> }
>
> print $txt;
>
>
> Niel
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
the code u mention before i tried to my code and it's not right..
thx for your support