i have this code for my memberlist...
I want to have 3 usergroups....members, admin, and other staff...admin being 1, staff 2, and users 3...so i want to have three of the codes above with the usergroups so i don't have to add them manually except for changing the usergroup...
so i need 3 of these:
but with usergroups 1,2,and 3...
help anyone?
| Code: |
|
<?php require("connect.php"); $getuser = mysql_query("SELECT * FROM users ORDER BY id DESC")or die("Get User Problem:". mysql_error()); while($username = mysql_fetch_array($getuser)){ $n++; if($n > 1) { echo ', '; } echo $username[username]; } ?> |
I want to have 3 usergroups....members, admin, and other staff...admin being 1, staff 2, and users 3...so i want to have three of the codes above with the usergroups so i don't have to add them manually except for changing the usergroup...
so i need 3 of these:
| Code: |
|
SELECT * FROM users ORDER BY id DESC |
but with usergroups 1,2,and 3...
help anyone?
