10-09-2010, 07:27 PM
So I have a large text file & I want to submit its contents to a database.
How exactly would I got about doing that?
Note: The text file is in a format of
cat
dog
fish
(Return has been pressed after everyword)
Also would there be a way to assign a variable to each word
So like line 1 would be say "cat" but would be declared like $line1 so I can also manipulate the text.
Thanks in advance.
How exactly would I got about doing that?
Note: The text file is in a format of
cat
dog
fish
(Return has been pressed after everyword)
Also would there be a way to assign a variable to each word
So like line 1 would be say "cat" but would be declared like $line1 so I can also manipulate the text.
Thanks in advance.