Pretty possible. You can save the Excel file as a CSV file and use fgetcsv () to read this file in PHP. fgetcsv() will parse your data in an array, which then you can create SQL queries from the database.
If everything you do puts it in a database, you can completely bypass the need for a PHP script and just use the MySQL LOAD DATA INFILE syntax in your CSV file:
LOAD DATA LOCAL INFILE '/importfile.csv' INTO TABLE test_table FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' (field1, filed2, field3);
zombat
source share