How to delete empty rows from importing excel files to mysql using php-php Tutorial

Source: Internet
Author: User
Tags php excel
How can I delete empty rows from php to excel to mysql? PHP-ExcelReader: import excel to mysql. However, if there are blank rows in excel, an empty data entry will appear in mysql. what should I do? thank you! ------ solution -------------------- make an empty judgment on each record before receiving the database. skip the code and check out how to delete blank lines when importing php excel to mysql.
PHP-ExcelReader imports the excel file to mysql, but if there is any blank line in the excel file, an empty data entry will appear in mysql. what should I do? thank you!

------ Solution --------------------
Skip each record if it is null before receiving the database
Paste the code to see

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.