Hi All, I am using subquery to fetch data from mysql and display on html page . But client like to display data in excel and they can also save or download it. I have visited spreadsheet_excel_writer on pear.php.net. and decided to use CSV file. Please suggest me more to do how csv file can be created dynamically and pass as argv. Thanks Santosh