This is a great help, thanx.
Just one last one to it. How do I access the values the amount of columns change, I won't be able to access them like this:
What do I need to todo to access anyone of these?
From here I would need to insert the values into a database. But I need to to check if the amount of columns equal the amount of columns in the database, and if the column names are the same. They have a format of
Block 1FE; Block 1 NFE; BLock 2FE; Block 2NFE, and so on, until the last one that was taken, be it say Block 25NFE.
The main problem is, is a reading was skipped, then it shouldn't be able to insert the code into the table.
tia
Quote:
|
Originally Posted by blaw
Hi there,
I guess tia meant something like this:
This is a CSV file, having 4 columns and 3 rows.
Assuming what tia meant was that, though this time there are 4 colmns, there might be 5, 6, or 28 columns next time, and wants to have as many <td></td>'s as there are columns in the CSV file.
If that's the case, you can explode the first line into an array to get the column count (please read the comment as it may be helpful for you to understand what's going on):
It seemed that you know how to handle once you have the column number, so I'll cut it here. Hope this is what you wanted.
Good night,
|