Hi,
If you need to do large data migration from an excel sheet to your MySQL database, the most conventional way is to convert the .xls or .xlsx files to simple CSV(comma seperated file) and read it using PHP file read function. However we can also read a .xls file without converting it to a csv file. We can even navigate through the various worksheets in a single file. Click here to download the entire source code. I have used couple of external class files to achieve this.
Lets have a look at the spreadsheet I am using as example:
Code and Explanation:
Lets have a look at the spreadsheet I am using as example:
Code and Explanation: