P
P
pavlikmd2018-05-25 00:53:21
PHP
pavlikmd, 2018-05-25 00:53:21

How to import xlsx with preview?

Good night, you need to make the following functionality:
1) Load a txt, xlsx, csv file and similar formats
2) Show this table in the iframe for preview, if the file is txt, then make this table using separators and display it in the same iframe
3) Select which column goes to which column in the database
Question: how would you implement this? Are there any libraries for working with this format (for preview). Even if there is a preview, how do you select a column and load it into the mysql database?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dmitriy, 2018-05-25
@pavlikmd

Reading text files line by line is not a problem, xlsx with no problem will have to be completely read (unpacked) and this is a waste of resources

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question