MyBB Hacks

Full Version: An SQL Query needed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello Smile

Can any one provide me an sql query for a selective users from a selecive usergroup ?

I mean , I want Users of gid 6 and list them separately on another page.

Help needed Smile

Regards
Maybe something like this:

SQL Code
$query = $db->simple_select('users','*','usergroup="6"');

Then how to count them ?

PHP Code:
$query = $db->simple_select('users','*','usergroup="6"');
$count = $db_num_rows($query);


^ Is it right ?

PHP Code:
$count = $db->num_rows($query);

Yes, Thanks Smile
Reference URL's