I was asked by a Never Without client of ours to create an admin section to a site that would enable a user to download an Excel spreadsheet of a MySQL database.
I have created a PHP file that, when edited to suit your host, username, password, and table, will parse the information of a specific MySQL table that you define into an Excel file that will automatically download to your desktop.
The end file will include column headers for the table, as well as the data.
Comments on "MySQL PHP Export to Excel .xls":
2008-09-02
who can help me with Excel data import into MySQL database, using PHP script. PLease mail me at yeennee@gmail.com
Would really appreciate whom can help....thanks....
2008-09-01
works like a charm
thank you
2008-08-25
i love u
2008-08-20
Awesome ! Dude Great Script................
Dude can convert the Mysql data of Reporting file , where webpage display the weekly report based on JOIN tables. i want the output of webpage and convert into Excel file.
Reply me back ...........stunnermind@yahoo.co.in
2008-08-16
Thank you!!!
2008-08-14
Ideally would like to be able to change the formatting of the exported file a bit so the columns are wider if you have info on how to do this that would be appreciated.
2008-08-07
awesome!
thanks.
2008-08-07
awesome..
it was just a piece of cake. Thanks a lot man..
2008-07-29
thank u soooooooooooooooooooooooooooooo much
2008-07-28
hai...if I'm doing this empty screen is comming...plz help
2008-07-18
Hi script is really gr8. But I wanna know that is there a way out that we have only some columns in excel sheet instead of all the columns that are coming in excel right now. Will be a gr8 help from yr side thnks
2008-07-08
Excellent stuff - just what the doctor ordered :)
2008-06-27
Thanks I needed this kind of script for a project and I was able to plug it in with a couple of modifications, works great and I learnt from it. Thanks for sharing.
German
2008-06-04
thanx
2008-05-29
Unfortunately I don't have a copy of Excel 2007 to test against. I'm sorry I can't help you out with that until I do.
2008-05-29
When used with Excel 2007 a warning is issued when the program opens the generated file: the file format specified by the filename is different from the actual file format. Is there a way to avoid or resolve this warning?
2008-05-28
HEY IT'S NICE SCRIPT
BUT DO U HAVE A SCRIPT TO IMPORT .XLS INTO MYSQL DATABASE
IT U HAVE PLZ MAIL ME : hellocp150@gmail.com
Regards
Hardik
2008-05-22
Works great, saved me alot of time! Thanks!
2008-05-21
GREAT SCRIPT dude! this was awesome. have already converted it to MSSQL and works like a charm
From Rapture
2008-05-13
nice bro......thanx a lot
2008-05-11
Thanks, great script.....
2008-05-10
Thank you for sharing this file. It will really help me.
2008-05-10
Thank you so very much. You are amazing. Bless you for this gift!
2008-05-05
GREAT!!!! It will make my life more easy...
2008-05-05
This is beauty... Thanks! :)
2008-05-03
Sweet! Thanks a ton. I've been writing and reading, but haven't been able to accomplish the proper formatting when the export is opened in Excel. Your script works like a charm, thanks again.
2008-04-18
thanks. - jeramel
2008-04-02
hello!!
I'm getting the following warnings below:
Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php on line 30
fields:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php:30) in /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php on line 57
Warning: Cannot modify header information - headers already sent by (output started at /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php:30) in /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php on line 58
Warning: Cannot modify header information - headers already sent by (output started at /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php:30) in /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php on line 59
Warning: Cannot modify header information - headers already sent by (output started at /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php:30) in /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php on line 60
I need help!
2008-04-02
hello!!
I'm getting the following warnings below:
Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php on line 30
fields:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php:30) in /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php on line 57
Warning: Cannot modify header information - headers already sent by (output started at /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php:30) in /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php on line 58
Warning: Cannot modify header information - headers already sent by (output started at /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php:30) in /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php on line 59
Warning: Cannot modify header information - headers already sent by (output started at /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php:30) in /home/content/d/e/v/devindeuville/html/renante/CD_Request/mysql-php-xls.php on line 60
I need help!
2008-03-17
Excellent Script.....Easy and Very Useful.
Thanks!
2008-03-10
thanks for your kind sharing!!
2008-01-22
thanks for sharing,,, it is a good one..
2007-11-04
GREAT SCRIPT, THX from dk