Quote:
I'm trying to download records from mysql in excel on checkbox selection using session
One of the reasons you don't get answers, is that the question is poorly constructed.
First, the question is not related to Excel. The file generated is a simple .csv file with tabs, it can be used with about anything including Excel, but not only.
second, Your problem is not about read a database either
Your real question is "How to read the user input in my php code ?"
You probably also need to learn how to call php code on server side from client browser.
In this site, your will find a lot of things related to web deb:
PHP 5 Tutorial[
^]