hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Export emails from phpbb
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

Export emails from phpbb

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 12-30-2009, 04:52 PM
ashras99 ashras99 is offline
Web Hosting Evangelist
 
Join Date: Nov 2005
Posts: 467
Arrow

Export emails from phpbb


I like to export emails from the phpbb database into text file. I need to define specific date of export "from" - "to".

I am using PHPmyadmin for this.

Please tell me what will be the query. Currently i am able to export or emails from this query.

Code:
SELECT `user_email` FROM `phpbb_users` GROUP BY `user_email` ORDER BY `user_email`

Reply With Quote


Sponsored Links
  #2  
Old 01-04-2010, 03:24 PM
ashras99 ashras99 is offline
Web Hosting Evangelist
 
Join Date: Nov 2005
Posts: 467
Any help on this?

Reply With Quote
  #3  
Old 01-04-2010, 03:51 PM
VIPoint VIPoint is offline
Web Hosting Master
 
Join Date: Mar 2009
Posts: 968
Use this command

SELECT `user_email` FROM `phpbb_users` GROUP BY `user_email` ORDER BY `user_email` INTO OUTFILE '/tmp/mysqlfile';

This will copy the e-mail accounts to a file /tmp/mysqlfile

__________________
*Honest & Advanced Outsourced Support*
Dedicated Linux Server Admins in Infopark Tech Park, India
VIPoint Pvt. Ltd | http://www.vipointsolutions.com
E-Mail: Sales@VIPointSolutions.com

Reply With Quote
Sponsored Links
  #4  
Old 01-04-2010, 04:28 PM
ashras99 ashras99 is offline
Web Hosting Evangelist
 
Join Date: Nov 2005
Posts: 467
I think you have not read "I need to define specific date of export "from" - "to" fields.

Reply With Quote
  #5  
Old 01-04-2010, 05:37 PM
Mark Muyskens Mark Muyskens is offline
Rebooting is a hack, not a fix
 
Join Date: May 2008
Location: Citrus Heights, CA
Posts: 1,519
here's a php script i use to export emails to csv

PHP Code:
<?php

$dbhost 
'localhost';

$dbuser 'username';

$dbpass 'password';

$dbname 'mark_forum';

$conn mysql_connect($dbhost$dbuser$dbpass) or die ('Error connecting to mysql');

mysql_select_db($dbname);

$query="SELECT user_email FROM phpbbforum2008_users WHERE user_email !=''";
$Result mysql_query($query) or die("Error: " mysql_error());
header("Content-type:text/octect-stream");
header("Content-Disposition:attachment;filename=email.csv");
while(
$row mysql_fetch_row($Result))
{
print 
'"' stripslashes(implode('","',$row)) . "\"\n";
}
exit;


mysql_close($conn);
?>

__________________
Best Regards,

Mark

Reply With Quote
  #6  
Old 01-04-2010, 06:13 PM
ashras99 ashras99 is offline
Web Hosting Evangelist
 
Join Date: Nov 2005
Posts: 467
where to fill the "from" dates inside this script?

Reply With Quote
  #7  
Old 01-05-2010, 02:06 PM
VIPoint VIPoint is offline
Web Hosting Master
 
Join Date: Mar 2009
Posts: 968
What date are you talking about? date of creation of e-mail account ?

__________________
*Honest & Advanced Outsourced Support*
Dedicated Linux Server Admins in Infopark Tech Park, India
VIPoint Pvt. Ltd | http://www.vipointsolutions.com
E-Mail: Sales@VIPointSolutions.com

Reply With Quote
  #8  
Old 01-05-2010, 02:49 PM
ashras99 ashras99 is offline
Web Hosting Evangelist
 
Join Date: Nov 2005
Posts: 467
yes, date when that account is created or date when account created/updated.

Reply With Quote
  #9  
Old 01-06-2010, 09:07 AM
mattle mattle is offline
Web Hosting Master
 
Join Date: May 2009
Posts: 766
You just need to add a where clause...I can't remember how phpbb stores dates (UNIX timestamps?).

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
export me please ti_nhatrang Programming Discussion 5 09-23-2009 06:46 PM
Export to excel ebosysindia Programming Discussion 0 05-12-2009 07:37 AM
Thousands of emails being sent via sendmail to ne.jp emails. Help me find him... astounding Hosting Security and Technology 6 09-13-2007 09:09 PM
Automatic emails to users in phpBB Forum Vicente Duque Web Design and Content 0 03-31-2005 08:14 PM
export PATH= [help] 5need Hosting Security and Technology 9 06-25-2004 01:44 PM

Related posts from TheWhir.com
Title Type Date Posted
Phoenix NAP Responds to Customer Feedback with New Cloud Features Web Hosting News 2013-02-19 17:09:09
So you want to do business with Europe? Blog 2012-08-24 17:20:01
eleven Report for June Sees 927.4 Percent Rise in Virus-Infected Emails Web Hosting News 2012-06-07 15:33:50
eleven Report Finds Online Casinos Most Popular Spam Topic in November Web Hosting News 2011-12-12 21:58:22
Security Firm eleven Report Finds 89 Percent Spam Increase Since July Web Hosting News 2011-10-12 19:04:26


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?