PDA

View Full Version : Check usergroupid from MySQL


Gohan
09-06-2002, 02:17 PM
Please helped,

I don't understand why doesnt working.

Does working
$clanreports=$DB_site->query("SELECT * FROM user WHERE usergroupid=6");

Doesnt working
$clanreports=$DB_site->query("SELECT * FROM user WHERE usergroupid=6 AND usergroupid=10");

Did i wrong code?

g-force2k2
09-06-2002, 02:22 PM
yeah because there is nothing that has a usergroupid of both 6 and 10 ;) regards...

g-force2k2

Gohan
09-06-2002, 02:24 PM
Hmm.. i need it for droplist for clanmember only, else i get alot normal vbb members..

Maybe know you another code?

Gohan
09-06-2002, 02:42 PM
nm.. already solve :D