PHP: Admin perms error
I have two rank in my forum Admin = 1 and User = 0 Then this code is doing
so the admin get red name.
if($info['rank'] == 1) { $x= "<a class='admin'>".$last_user."</a>";
} else { $x= "<a class='user'>".$last_user."</a>"; }
But everyone is getting red name..
CSS:
.admin {
font-weight:900;
color: #F70D1A;
text-decoration: none !important;
}
.admin:hover {
font-weight:900;
color: #C11B17;
text-decoration: none !important;
}
.user {
font-weight:900;
color: #000;
text-decoration: none !important;
}
No comments:
Post a Comment