CodeIgniter3.1 uses the CSV batch import function to write data to the database

WBOY
Release: 2016-10-11 14:23:45
Original
920 people have browsed it

As the title
The website is an e-commerce shopping website. To operate the products on the shelves, you need to do a batch import function. Write all the fields in the database in the table, and then the program reads the value in the table and inserts it into the corresponding table;

Has anyone done a similar function?

Reply content:

As the title
The website is an e-commerce shopping website. To operate the products on the shelves, you need to do a batch import function. Write all the fields in the database in the table, and then the program reads the value in the table and inserts it into the corresponding table;

Has anyone done a similar function?

Just use phpexcel directly, it is not recommended to use csv

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template