| | |
How to php export to excel
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2007
Posts: 252
Reputation:
Solved Threads: 27
good example here http://www.appservnetwork.com/module...=article&sid=8
php Syntax (Toggle Plain Text)
<?php $filename ="excelreport.xls"; $contents = "testdata1 \t testdata2 \t testdata3 \t \n"; header('Content-type: application/ms-excel'); header('Content-Disposition: attachment; filename='.$filename); echo $contents; ?>
This is the simplest way to generate an excel report.
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
•
•
Join Date: Dec 2009
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
php Syntax (Toggle Plain Text)
<?php $filename ="excelreport.xls"; $contents = "testdata1 \t testdata2 \t testdata3 \t \n"; header('Content-type: application/ms-excel'); header('Content-Disposition: attachment; filename='.$filename); echo $contents; ?>
This is the simplest way to generate an excel report.
Let me confess, I am ZERO in php.
I purchased one cd which has php files embedded with html page then scrolling pages in php formate withen windows of html .
Main data in in php file .
How to get this data in office document formate ( either MS Word or MS Excel)? Can some one help me in doing so....I am fed up.
![]() |
Similar Threads
- Porblem in UTF-8 support on CSV/EXCEL (PHP)
- php file export issue (PHP)
- How to export data from mysql into fields in excell (PHP)
- Check my website plz.. www.antcards.com (Website Reviews)
- Form Processor (PHP)
- Time Record Software (Computer Science)
- MySQL Reports (MySQL)
Other Threads in the PHP Forum
- Previous Thread: PHP mysql database backup
- Next Thread: Cannot redeclare page_protect()
Views: 16182 | Replies: 7
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl customizableitems database date directory display download dynamic echo email error file files folder form format forms forum function functions google headmethod href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail malfunctioning menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql structure syntax system table tutorial update updates upload url validation validator variable video web xml youtube






