Read file and add to database
<p>I want to load a .txt file and loop through this to put data in a database.</p>

<p>text file format looks like this:</p>

<pre>
1231.24314, 112.341234, 34, text
34.13214234, 3455.1234, 11, text
</pre>

<p>There are hundreds of rows that I want to read out and save each row into a database in the right column</p>

<p>database will look something like this:</p>

<pre>
id, COLUMN1, COLUMN2, column3
</pre>

<p>How can I with the help of PHP loop through text file and save it into a database?</p>
