I'm loading tab delimited lines from a txt file using php and running
a query for each line to enter the data into a mysql database.
However the data appears in reverse order from the bottom line in the
file upwards to the top instead of from the top downwards to the
bottom. Which I would like
Any help appreciated to accomplish this thanks code below.
$fp = fopen('textfile.txt', 'r');
$lines = fgets($fp);
$line = explode("\t", $lines);
//variables created for the database query here
(code snipped to save space)
$sql = "INSERT INTO table_name (field_one, filed_two, ...