Parsing CSV output from Database
Posted: Sat Jul 22, 2006 9:21 pm
I'm trying to parse a simple CSV file from FileMaker. It looks something like this:
"matt short","matt.short@email.com","x103"
"next employee","next.employee@email.com","x104"
etc.
Is there a way to have PHP break each column out to become a variable? For instance, $name = $csv[1]
What I'm trying to do is create a web page that will list the name as a hyperlink to the email address for each employee.
<a href=mailto:$email>$name</a><br>$extension
or something to that affect. I just can't seem to find a way to have PHP break each element out to do that
Can anyone help? Thanks!
"matt short","matt.short@email.com","x103"
"next employee","next.employee@email.com","x104"
etc.
Is there a way to have PHP break each column out to become a variable? For instance, $name = $csv[1]
What I'm trying to do is create a web page that will list the name as a hyperlink to the email address for each employee.
<a href=mailto:$email>$name</a><br>$extension
or something to that affect. I just can't seem to find a way to have PHP break each element out to do that
Can anyone help? Thanks!