| | |
Php, Mysql and Excel
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Jan 2008
Posts: 74
Reputation:
Solved Threads: 5
I am trying to write or find scripts that will:
1- create a script that will allow someone to Unsubscribe to a mailing list based on email address.
2- export data to a predefined excel file which will be used to print mail labels.
I have looked and looked and have found nothing which works properly.
Thank you for any and help.
Vai
1- create a script that will allow someone to Unsubscribe to a mailing list based on email address.
2- export data to a predefined excel file which will be used to print mail labels.
I have looked and looked and have found nothing which works properly.
Thank you for any and help.
Vai
do you have a mailing list setup that someone can unsubscribe from. if not, i recommend using www.mailing-manager.com. they will have everything you need.
i have a class to export mysql database to excel file. i have a working example if you need one.
i have a class to export mysql database to excel file. i have a working example if you need one.
catch me on skype sometime tomorrow and I will give you the url and credentials to the site. i would post it here but the example is in one of my administrative centers for a site that hasn't gone live yet and I don't want everyone having access.
also, send me your mailing list script so i can add the unsubscribe part.
also, send me your mailing list script so i can add the unsubscribe part.
Last edited by kkeith29; Jul 11th, 2008 at 1:38 am.
•
•
•
•
If you have the a working example of exporting mysql data to excel I would appreciate that.
php Syntax (Toggle Plain Text)
<?php $file="test.xls"; $test="<table border=1><tr><td>Cell 1</td><td>Cell 2</td></tr></table>"; header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=$file"); echo $test; ?>
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
Instead of
fetch the data from the database and use it.
PHP Syntax (Toggle Plain Text)
$test="<table border=1><tr><td>Cell 1</td><td>Cell 2</td></tr></table>";
php Syntax (Toggle Plain Text)
$text = "Name \t Age \n"; //header while($row = mysql_fetch_array($result)) { $text.=$row['name']."\t".$row['age']."\n"; //records }
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
•
•
•
•
php Syntax (Toggle Plain Text)
$test="<table border=1><tr><td>Cell 1</td><td>Cell 2</td></tr></table>";
php Syntax (Toggle Plain Text)
<?php $file="test.xls"; header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=$file"); ?> <table cellpadding="0" cellspacing="0"> <tr> <td>cell one</td> <td>cell two</td> <td>cell three</td> <td>cell four</td> </tr> <tr> <td colspan="4" align="center"><b>cell one</b></td> </tr> <tr> <td>cell one</td> <td>cell two</td> <td>cell three</td> <td>cell four</td> </tr> </table>
Freaking cool man! Thx.
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” - Dr. Seuss
-- The documentation is inevitable, you may get away with it for a little while but eventually you too will have to do the deed.
-- The documentation is inevitable, you may get away with it for a little while but eventually you too will have to do the deed.
![]() |
Similar Threads
- code to import excel data into mysql using php (PHP)
- excel+php (PHP)
- Experienced PHP/MySQL programmer (Post your Resume)
- MySQL/PHP UPDATE Syntax error (MySQL)
- Mysql to Excel worksheet, need code (PHP)
- help pleaseee! probl with username and passwd when updating mysql database (MySQL)
- dynamic content from database, How? (Database Design)
- MySQL Reports (MySQL)
Other Threads in the PHP Forum
- Previous Thread: error
- Next Thread: session management
Views: 2024 | Replies: 8
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cookies cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail mediawiki 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 stored structure subdomain syntax system table tutorial update updates upload url validation validator variable video web xml youtube






