Page 1 of 1

help with file function

Posted: Thu Sep 17, 2009 1:21 am
by greedyisg00d
I have a table Company with 3 fields namely Name, Address and ContactInfo. The data is tabulated in ms excel and then exported into text. I want to use the file functions of php which is first is to get the number of columns of the text file which must be 3 columns and second is to get and echo the data of the first column Name. Any idea on how can this be done. Thanks

Re: help with file function

Posted: Thu Sep 17, 2009 4:59 am
by Mark Baker
Just a text file, or do you mean a csv of similar file?
What does the file content actually look like?