csv save
How to replace csv table contents from html table contents
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Megan FosterPosted Feb 6, 2015, 2:56 AM
Unfortunately I haven't used PHP over 5 years now so...
But nevertheless try this for CSV to HTML:
http://stackoverflow.com/questions/518795/dynamically-display-a-csv-file-as-an-html-table-on-a-web-page#518923
And this for vice versa:
http://stackoverflow.com/questions/10498632/converting-html-table-to-a-csv-automatically-using-php#10498941
Abc ThakurPosted Feb 5, 2015, 5:56 AM
Megan FosterPosted Feb 5, 2015, 5:10 AM
But here is how you can get a HTML table from CSV:
Also in case I misunderstood you here is how you can get CSV from HTML table (I used HtmlAgilityPack library):
Note that these are just concepts, I really did not pay much attention for edge cases and other stuff so you will have to tweak the solution a bit, but nevertheless I hope they will help you as a sort of a guidelines.
Also in case you are interested you can try out with this .NET library for excel files. It simplifies the process of converting spreadsheet content that comes from various formats into some other format. For example you can check out this article that shows how you can convert between CSV, HTML but also XLS and XLSX with C#.