ws4210 Posted November 22, 2010 Share Posted November 22, 2010 I am trying to list all users who used a particular promotion code How to search for it? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted November 22, 2010 WHMCS Support Manager Share Posted November 22, 2010 There isn't I'm afraid. 0 Quote Link to comment Share on other sites More sharing options...
ws4210 Posted November 23, 2010 Author Share Posted November 23, 2010 Hi John then it is needed . Please remind that I am sure people will need to have a list of users who have used a particular promotion code Any other way I can search? Thanks 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted November 23, 2010 Share Posted November 23, 2010 You could do it with a sql query. Something like this would work: SELECT h.id, h.domain, c.firstname, c.lastname, c.email FROM tblhosting h, tblclients c, tblpromotions p WHERE h.promoid = p.id AND h.userid = c.id AND p.code = "YOURPROMOCODEHERE" 0 Quote Link to comment Share on other sites More sharing options...
ws4210 Posted November 25, 2010 Author Share Posted November 25, 2010 wow that was complicated 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.