•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 425,796 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 3,148 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: 727 | Replies: 8 | Solved
![]() |
•
•
Join Date: Jan 2008
Posts: 70
Reputation:
Rep Power: 1
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
•
•
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 554
Reputation:
Rep Power: 3
Solved Threads: 57
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.
•
•
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 554
Reputation:
Rep Power: 3
Solved Threads: 57
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 12:38 am.
•
•
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation:
Rep Power: 8
Solved Threads: 240
•
•
•
•
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; ?>
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,098
Reputation:
Rep Power: 8
Solved Threads: 240
Instead of
fetch the data from the database and use it.
$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 }
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: Jun 2008
Location: Phoenix, AZ
Posts: 769
Reputation:
Rep Power: 2
Solved Threads: 63
•
•
•
•
php Syntax (Toggle Plain Text)
$test="<table border=1><tr><td>Cell 1</td><td>Cell 2</td></tr></table>";
Wow! That really works! I've always done just plain csv files, I didn't know you could use html. You've made my day.
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- excel+php (PHP)
- code to import excel data into mysql using 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



Linear Mode