-1

I have a table on my webpage.

I want to add more data by adding an import CSV button with that.

The CSV's I will import would be exactly formatted in the manner the table is.

So, how can I insert an upload button which could save the CSV temporarily and call a PHP code which can then upload the table?

Brandon Minnick
  • 13,342
  • 15
  • 65
  • 123
Kushal Shah
  • 3
  • 1
  • 3
  • I haven't tried anything. I just had a brief idea as to use the form action attribute and so on. But, is there a better way? – Kushal Shah Jan 03 '18 at 19:30
  • 3
    Welcome to StackOverflow! Please consider reading [ask] if you want to have a better chance of getting help. Your questions need to be to-the-point, show that you've made an effort yourself to solve the problem (i.e. show us your code). – dirkgroten Jan 03 '18 at 21:06

1 Answers1

0

// check this url I hope it's useful ...

https://stackoverflow.com/questions/5593473/how-to-upload-and-parse-a-csv-file-in-php

OR

https://www.codexworld.com/import-csv-file-data-into-mysql-database-php/
Nimesh Patel
  • 796
  • 1
  • 7
  • 23