Hello everyone!
Hope all r fine. I need your help.
I want to write code in php to export the data from db table to xls file (not csv file). Let me explain:
Suppose, Table1 has 5 columns (c1, c2, c3, c4, c5) and Table 2 has 3 columns (d1, d2, d3). Now, I want to do two things:
1. Create a xls file (not csv file) and save data of each column of Table1. That is, I want to save the data of entire table in an excel file (.xls format, not .csv format)
2. Create a xls file (not csv file) and save data of c2, c3, c4 (from Table1) and d2, d3 (from Table2).
3. insert data into Table3 from a xls file (not csv file). That is, I want to browse a xls file (not csv file), and after clicking submit button the data of that xls file should get inserted into Table3 of my db.
Note: please help me with the code. please do not refer to any other link.
Thank you.


