Flat file script
Posted: Fri Mar 10, 2006 6:06 pm
hello i created a flat file script and well i have alil problem now here is the script
and i get this error
Smackie
Code: Select all
<?
$Lines = file("data.txt");
foreach($Lines as $Key => $Val)
{
//explode that data into a new array:
$Data[$Key] = explode("||", $Val);
}
for($K = 0; $K < sizeof($Lines); $K++)
{
echo '<p>';
echo 'Rank: '.$Data[$K][0].'<br>'
echo 'Callsign: '.$Data[$K][1].'<br>'
echo 'Duty: '.$Data[$K][2].'<br>'
echo '</p>';
}
?>can someone help thank youParse error: syntax error, unexpected T_ECHO, expecting ',' or ';' in /home/gnsf/public_html/test/home.php on line 14
Smackie