Phpu wrote:
Hi,

I have a file, test.txt. The containig of this file is:

line 1
line 2
line 3
------
and so on

I want to create a script that will read each line of the file and insert it to 
database.
I am new to php and maybe you could help me

http://us2.php.net/fopen http://us2.php.net/fgets

Then try the chapter in the manual for whatever database you're using...

--

---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to