Home >Backend Development >PHP Tutorial >CodeIgniter3.1 uses the CSV batch import function to write data to the database

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

WBOY
WBOYOriginal
2016-10-11 14:23:45937browse

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

Statement:
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