Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 451
0 Users 2 Guests Online
Forum Index » PHP + MySQL » question to usercolor
Posted on Monday 11th August 2008 at 07:59 AM
schorsch
templates/default/images/noavatar.png's Avatar
Active Member
how can I make the database more than I can control what rang what color?

and wherever I usernamen query also the color-coded username?
Posted on Monday 11th August 2008 at 02:11 PM
UrbanTwitch
templates/default/images/noavatar.png's Avatar
Senior Member
PHP Code
1
2
3
4
5
6
7
8
9
10
11
12
13
{
if ($user[userlevel] == '2')
echo "<font color='blue'>MEMBER</font>";

}elseif ($user[userlevel] == '4') {

echo "<font color='orange'>Staff/Moderator</font>";

}elseif ($user[userlevel] == '6') {

echo "<font color='red'>Administrator</font>";
}


And you get tge $users part by using mysql_fetch_array and while.
Posted on Monday 11th August 2008 at 08:22 PM
schorsch
templates/default/images/noavatar.png's Avatar
Active Member
so I also know how to do it! But the database is in the admin area of the datenabnk can change the I