Hi
I am complete novice and know little if anything about PHP but I've been told it should be able to do the following.
I have a csv file (info.csv) with header row which contains the below information;
ID,Price
M1,220
P34,125
T24,234
R12,523
The above is an example, there are around 100 IDs which are static, every now and then the price changes for which a new csv is produced.
What I want to do is query the csv file (info.csv) and print/display/echo the price of a specific ID.
For example the query is, if ID = T24 then the output shown would be the price from that row in this case 234.
Can this be done with a very simple small piece of code. I have researched fgetcsv and explode but I am somewhat lost at the moment.
Any help would be appreciated.