Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Exporting Members's Emails

Is there a way to export the username and email addresses of my members? If so, how do I do it?
use this on a custom page:

CodeDownload  
<?php
$result=dbquery("SELECT * FROM ".DB_PREFIX."users");
echo "<table><tr><td width='50%'><b><u>User Name</b></u></td><td width='50%'><b><u>User Email</b></u></td></tr>";
while ($data=dbarray($result)) {
echo "<tr><td width='50%'>".$data['user_name']."</td><td width='50%'>".$data['user_email']."</td></tr>";
}
echo "</table>";
?>

Thanks helmuth, I appreciate your help.
I came here to ask the same exact question, what a coincidence it's on the top of the list. Thanks for the code and help helmuth.
Thread Information
Author
Replies
4 posts
Views
1,052 times
Last Post
Last updated on 1 year ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: helmuth, afoster, FreedomIOPList