Skip to content
Advertisement

CSV to HTML Table using php

I am trying to take data from my CSV file and use php to display it in an html table, sorted by customer last name. I have tried a couple things and it doesn’t seem to be working.

The output I got is: enter image description here Right now the format is last, first,address,city,district,postal code How would i import this to an html table using php?

using this code.

JavaScript

Advertisement

Answer

In your last comment you ask for table header so you can write code like below,

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