I have a database generated table using PHP .
For exporting the table , I am using the following code to save its contents in .xls format.
Previously this script