Skip to content
Advertisement

How to read a CSV file using PHP and display content in Table/DIV?

I am using the following PHP code to read a CSV file with two column (e.g. x,y) and display the content in a table:

JavaScript

However, I am using a new table now (see below) which I want to use to display column A in the cells containing 1/2/3/4 etc and column B in the cells containing 5/6/7/8.

How can I do that?

JavaScript

Advertisement

Answer

Use the “fread($f, filesize(filename.kit)” instead of fgetcsv.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement