Count Male/Female Specific Usergroup
Niki Offline
Junior Member
**
Posts: 29
Joined: Oct 2016
Post: #3
RE: Count Male/Female Specific Usergroup
Placed it at the third and still receiving errors.

PHP Code:
// Usergroup Number Counts
$num_male = $db->fetch_field($db->simple_select("userfields", "COUNT(ufid) as count", "usergroup IN ('4')", "fid3='Male'"), "count");
$num_female = $db->fetch_field($db->simple_select("userfields", "COUNT(ufid) as count", "usergroup IN ('4')", "fid3='Female'"), "count");


Also tried

PHP Code:
// Usergroup Number Counts
$num_male = $db->fetch_field($db->simple_select("userfields", "COUNT(ufid) as count", "WHERE usergroup IN ('4')", "fid3='Male'"), "count");
$num_female = $db->fetch_field($db->simple_select("userfields", "COUNT(ufid) as count", "WHERE usergroup IN ('4')", "fid3='Female'"), "count");

12-16-2017 06:16 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Count Male/Female Specific Usergroup - Niki - 12-16-2017 06:16 AM

 Standard Tools
Forum Jump: