How does thinkphp export data from an excel file to the background? This step is now only available.

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.