SQL-Query for email list

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-06-2007, 02:44 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Hi,

IŽd like to create a email list of my users to hold a poll with LimeSurvey (LimeSurvey.org - The Leading Open Source Tool for Online Surveys - Home). I will extract the list as csv through phpMyAdmin but I need the query.

Minimum values are user id and email address, a surplus would be user name and user level to sort out some users.

Thx
Reply With Quote
  #2 (permalink)  
Old 07-06-2007, 06:32 PM
Pligg Donor
 
Join Date: Mar 2007
Posts: 85
Quote:
Originally Posted by tbones View Post
Hi,

IŽd like to create a email list of my users to hold a poll with LimeSurvey (LimeSurvey.org - The Leading Open Source Tool for Online Surveys - Home). I will extract the list as csv through phpMyAdmin but I need the query.

Minimum values are user id and email address, a surplus would be user name and user level to sort out some users.

Thx
This will work directly through phpMyAdmin -
SELECT `user_id`, `user_email`, `user_names` FROM `pligg_users` WHERE `user_level` = "normal" ORDER BY `user_email`;
Reply With Quote
  #3 (permalink)  
Old 07-06-2007, 06:45 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
It works perfect, thank you!
Reply With Quote
  #4 (permalink)  
Old 07-06-2007, 08:43 PM
P1mpPanther's Avatar
Constant Pligger
 
Join Date: Feb 2007
Posts: 277
Now all we need is to add this to the admin area!

hmmm....
Reply With Quote
  #5 (permalink)  
Old 07-07-2007, 02:10 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
That´s not necessary. The csv file allows a convenient import to LimeSurvey and that allows to track the individual participance to the poll via email invitation.
Reply With Quote
  #6 (permalink)  
Old 07-07-2007, 02:31 AM
P1mpPanther's Avatar
Constant Pligger
 
Join Date: Feb 2007
Posts: 277
Sorry, I was chiming in but not being very clear. The ability to export users contact info would be a nice feature for the admin section was all I meant.
Reply With Quote
  #7 (permalink)  
Old 07-07-2007, 02:56 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Yeah, if it would provide (just as the file upload module) a link to a custom csv file that can be transformed into nearly every format.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
seems that caching and dbase calls are the impasse, sorry. daveyc Questions and Comments 15 04-22-2008 05:25 AM
The Real Cause Of High Load For My Server Using PLigg 9.9 and Was 9.8.2 argh2xxx Questions and Comments 18 01-10-2008 05:33 PM
Pligg variable definition and SQL query for an existing variable tbones Questions and Comments 6 08-08-2007 04:05 PM
'max_user_connections' suddenly exceeded mightyb Questions and Comments 10 06-13-2007 05:40 PM
SQL Query needed. DuckFat Questions and Comments 0 07-27-2006 03:34 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development