Re: 4th row in txt
| From: | Rich Choy | Date: | Mon, 21 Apr 2003 16:00:37 +0000 |
| Subject: | Re: 4th row in txt | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144658@lists.php.net to get a copy of this message | ||
http://www.php.net/manual/en/function.fgets.php
Or you can preg_match for year.
"Simon" <velikanka@hotmail.com> wrote in message
news:20030421151256.4381.qmail@pb1.pair.com...
> Hi,
>
> I have some txt files, that I would like to import to mysql. Format is:
>
> name
> last name
> city
> year
>
> How can PHP "select" only 4th row, and then put it into mysql.
>
> TNX
>
>