•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 375,207 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,318 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 399 | Replies: 4
![]() |
•
•
Join Date: Dec 2007
Location: Oklahoma
Posts: 159
Reputation:
Rep Power: 1
Solved Threads: 16
good example here http://www.appservnetwork.com/module...=article&sid=8
•
•
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,057
Reputation:
Rep Power: 8
Solved Threads: 229
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.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
*PM asking for help will be ignored*
*PM asking for help will be ignored*
•
•
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,057
Reputation:
Rep Power: 8
Solved Threads: 229
Replace testdata in the above example with the database values.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
*PM asking for help will be ignored*
*PM asking for help will be ignored*
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
- 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 and Software Design)
- MySQL Reports (MySQL)
Other Threads in the PHP Forum
- Previous Thread: PHP Split function
- Next Thread: dynamic query



Linear Mode