actually it is quite easy, since you already know explode() function
<br><br>
<?php
$fData = file('order.txt');
for($line=1; $line<sizeof($fData); $line++) {
list($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l,$m,$n) = explode("|", $fData[$line]);
if($n==1) { // let say we want to show the last colomn == 1
$r = "<p>
FirstName : $c<br>
LastName : $d<br>
Last colomn : $n<br>
and so on...
</p><hr>";
echo $r;
}
}
?>
just need to change the rule using the if statement, then u can choose to see what column
u want to see.
i see what u are trying to do (i do it last time, few years ago, but in the end swith to a db server),
anyway, but if i gonna do it, i will do it using the WDDX function
so that i don't have to explode everytime i want the data. I used this type of flat file temp db
for configuration storage only. if u plan to use this flat file for records more than 30+ or > 30KB
then u might consider to use a light database server mSQL (mini SQL).
anyway, i advice u to use MySQL. so u can start from the right path... 🙂
yup, there are 2 types of people... 🙂