tiptop Posted January 23, 2018 Share Posted January 23, 2018 what query to extract customer name and customer email in two columns for active customers with group ID 16 and 15 whmcs support gave me , but it returning empty http://prntscr.com/i4g1cg select concat(firstname, ' ', lastname) as name, email from tblclients where status = 'Active' and groupid in (15,16); Link to comment Share on other sites More sharing options...
Ben_H Posted January 24, 2018 Share Posted January 24, 2018 I have tested the SQL Query in my install of WHMCS and it works fine when I change the group IDs to be mine so the query is valid. Are you sure that the IDs you are specifying are correct for your groups? These can be found at the end of the URL when editing a group or alternatively you can see the group IDs in the "tblclientgroups" table in the database. Link to comment Share on other sites More sharing options...
tiptop Posted January 24, 2018 Author Share Posted January 24, 2018 sorry I mean product group ID , not client group ID. How to fix it ? Link to comment Share on other sites More sharing options...
Recommended Posts