I have data stored in a text file instaed of a database. Each fiels is seperated by a comma and each record by \n.
I have used multidimensional arrays to retrieve data, but everytime i want a value in a particular colum i have to specifically mention the row no and field no.
eg $newarray[0][4].
This is very tedious if i want to display a no of records(even after putting it in a loop).
Any ideas on how to get a text file wrking like a databse file i.e how to retrieve data giving certain conditions etc..?
Thnks
I have used multidimensional arrays to retrieve data, but everytime i want a value in a particular colum i have to specifically mention the row no and field no.
eg $newarray[0][4].
This is very tedious if i want to display a no of records(even after putting it in a loop).
Any ideas on how to get a text file wrking like a databse file i.e how to retrieve data giving certain conditions etc..?
Thnks