| | |
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
| Thread Tools | Search this Thread |
ajax apache api archive array autocomplete beginner binary broken cakephp checkbox class cms code cron curl database dataentry date display duplicates dynamic echo email emptydisplayvalue error errors execute explodefunction file files firstoptioninphpdroplist folder form forms function functions google href htaccess html image include insert ip javasciptvalidation javascript joomla keywords limit link login mail matching menu mlm multiple mysql number oop paypal pdf php phpincludeissue phpmyadmin problem query radio random recursion recursive regex remote script search server sessions shot sms soap source space sql subscription syntax system table tag tutorial tutorials update upload url validator variable vbulletin video web xml youtube






