question to usercolor

Posted on Monday 11th August 2008 at 07:59 AM
schorsch
schorsch's Avatar
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
UrbanTwitch's Avatar
PHP Code
  1. {
  2. if ($user[userlevel] == '2')
  3. echo "<font color='blue'>MEMBER</font>";
  4.  
  5. }elseif ($user[userlevel] == '4') {
  6.  
  7. echo "<font color='orange'>Staff/Moderator</font>";
  8.  
  9. }elseif ($user[userlevel] == '6') {
  10.  
  11. echo "<font color='red'>Administrator</font>";
  12. }


And you get tge $users part by using mysql_fetch_array and while.
Posted on Monday 11th August 2008 at 08:22 PM
schorsch
schorsch's Avatar
so I also know how to do it! But the database is in the admin area of the datenabnk can change the I
Login or register to respond to this forum topic.