Heres the implode i got.
<?
$content=file("$form_data1");
unset($content[1]);
$tabbed=implode("",preg_replace('%[ ]{2,}%s', "\t", $content));
preg_match_all("%(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)%miU", $tabbed, $matches);
echo '<table border="1">
<tr>
<th>'.$matches[1][0].'</th>
<th>'.$matches[2][0].'</th>
<th>'.$matches[3][0].'</th>
<th>'.$matches[4][0].'</th>
<th>'.$matches[5][0].'</th>
<th>'.$matches[6][0].'</th>
<th>'.$matches[7][0].'</th>
<th>'.$matches[8][0].'</th>
<th>'.$matches[9][0].'</th>
<th>'.$matches[10][0].'</th>
<th>'.$matches[11][0].'</th>
<th>'.$matches[12][0].'</th>
<th>'.$matches[13][0].'</th>
<th>'.$matches[14][0].'</th>
<th>'.$matches[15][0].'</th>
<th>'.$matches[16][0].'</th>
<th>'.$matches[17][0].'</th>
<th>'.$matches[18][0].'</th>
<th>'.$matches[19][0].'</th>
<th>'.$matches[20][0].'</th>
<th>'.$matches[21][0].'</th>
<th>'.$matches[22][0].'</th>
</tr>';
for ($i=1; $i<count($matches[1]);$i++)
echo '<tr>
<td>'.$matches[1][$i].'</td>
<td>'.$matches[2][$i].'</td>
<td>'.$matches[3][$i].'</td>
<td>'.$matches[4][$i].'</td>
<td>'.$matches[5][$i].'</td>
<td>'.$matches[6][$i].'</td>
<td>'.$matches[7][$i].'</td>
<td>'.$matches[8][$i].'</td>
<td>'.$matches[9][$i].'</td>
<td>'.$matches[10][$i].'</td>
<td>'.$matches[11][$i].'</td>
<td>'.$matches[12][$i].'</td>
<td>'.$matches[13][$i].'</td>
<td>'.$matches[14][$i].'</td>
<td>'.$matches[15][$i].'</td>
<td>'.$matches[16][$i].'</td>
<td>'.$matches[17][$i].'</td>
<td>'.$matches[18][$i].'</td>
<td>'.$matches[19][$i].'</td>
<td>'.$matches[20][$i].'</td>
<td>'.$matches[21][$i].'</td>
<td>'.$matches[22][$i].'</td>
</tr>';
echo '</table>';
?>
now this shows the file just as it is in the attached fle. I need to enter this into mysql thou using field names.
(pos, no, name, points, minutes, fgm, fga, fgpercent , threepm , threepa, threeP, ftm, fta, ftpercent, orebounds, drebounds, rebounds, block, Steal, assist, turnovers, fouls)
I cant get it to work.