Jump to content

Query That Stores Column Headers From .csv File in Variables


dlebowski

Recommended Posts

I have not been able to figure out how to capture the column headings from a file on my web server in variables to be used in a .php script.  For example.

 

File Headers:

ID, NAME, OCCUPATION, DATE

 

I would like a script that would grab those headers in a file and store them in variables:

 

$ID=ID

$NAME=NAME

$OCCUPATION=OCCUPATION

$DATE=DATE

 

Thank in advance.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.