How does thinkphp export data from an excel file to the background? Now we only need this step. how can we transfer the data in the table to the background? This step is now only needed. The data in the table, including the previous sequence number $ key + 1, must be passed to the background. It should be in the form of input and text, but table data is in the form of data.
Reply to discussion (solution)
I don't know much about your problem.
We recommend that you split the problem
According to my judgment, you may have taken a detour.
Now that you have seen the table on the webpage
This table is generated by PHP.
To export an EXCEL file, use PHP to generate it again.
This is only the method used to generate an excel file instead of output to the foreground.
Two important parameters 1. the title of each column in excel, which is an array
2. content of each row in excel, which is a two-dimensional array
Then pass the method to me
When you access this PHP page, a prompt is automatically displayed for download.