Export Email Addres...
 
Notifications
Clear all

Export Email Address

6 Posts
3 Users
0 Reactions
1,617 Views
(@zxfactor)
Posts: 22
Eminent Member
Topic starter
 

I looked throught the email thread and I didn't see an answer, if I missed it, I apologize in advance. Is there a way for me to export the email address of memebers on my site.


 
Posted : 16/10/2008 7:48 pm
(@guest1448)
Posts: 0
 

Not directly from the site, but you could write a simple MySQL query that displays all addresses on one page which you can save as a text file. Or do it via Phpmyadmin, it has a more comfortable export function.


 
Posted : 17/10/2008 6:10 am
(@zxfactor)
Posts: 22
Eminent Member
Topic starter
 

Steffen

Thanks for replying. I am very new to this process. I see the PhpAdmin Option on my server. However I am not quite sure what table I would be exporting this information from. Would you happen to know which table/database I would need to export this information from?  Thanks in advance.


 
Posted : 17/10/2008 3:06 pm
(@guest1448)
Posts: 0
 

The addresses are in the "email" field of the #prefix#fanfiction_authors table, where #prefix# (if applicable) is the table prefix you've defined during the installation process. But I don't know if phpmyadmin allows exporting only one field of a table.


 
Posted : 17/10/2008 4:14 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Put this in a file in the main eFiction directory. If you have a prefix (like Steffen explained), then add it in the query. πŸ™‚ When you visit the page, it should output a list of all email addresses, comma separated. It might take a long/short time depending on how many members you have. You might also want to delete it after it's served its purpose.

<?php
define("_BASEDIR", "");

require("config.php");

$query = dbquery("SELECT email FROM fanfiction_authors");

$emails = array();

while ($row = dbassoc($query)) {
$emails[] = $row['email'];
}

$email_list = implode($emails, ', ');

print $email_list;

?>

archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 17/10/2008 5:13 pm
(@zxfactor)
Posts: 22
Eminent Member
Topic starter
 

Everyone..Thanks for you help. I was able do the code and the phyadmin.. The phpadmin was really easy and very helpful as was the coding.. Again .. thanks all.  πŸ˜€

Zeta


 
Posted : 18/10/2008 9:41 pm
Share: