3
this is to show all users
$result = mysql_query("SELECT uid, name, uname, user_avatar, last_login,profile_id, Sex FROM ".$xoopsDB->prefix("profile_profile").",".$xoopsDB->prefix("users")." WHERE profile_id=uid ORDER BY name ASC");
How do i show user from groupid= 4 only ?
this is not working
$result = mysql_query("SELECT uid, groupid, name, uname, user_avatar, last_login,profile_id, Sex FROM ".$xoopsDB->prefix("groups_users_link").",".$xoopsDB->prefix("profile_profile").",".$xoopsDB->prefix("users")." WHERE groupid=4 AND profile_id=uid ORDER BY name ASC");