-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?

2
  • 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? Commented Jan 3, 2018 at 19:30
  • 3
    Welcome to StackOverflow! Please consider reading How to 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). Commented Jan 3, 2018 at 21:06

1 Answer 1

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/
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.