
Originally Posted by
PremiumEye
You can do that with php. Do you have any experience with php? Than you can do this:
First do this:
[PHP]
$rank1 = 'class name/#colorcode';
$rank2 = '';
$rank3 = ''; ...
Put these before the while function!
Until all your ranks. As value you need to give the class name or style to change the header.
Check what the rank id is. That rank id will ben compatible with the variables you made. Like this:
[PHP]
$rank1 = 'red';
$rank2 = 'blue';
$rank3 = 'green';
// with class
while($staff = mysql_fetch_array($query)){
<div class='header <?php echo $rank.''.$staff['id']; ?> '></div>
}
// with style
while($staff = mysql_fetch_array($query)){
<div class='header' style='background-color: <?php echo $rank.''.$staff['id']; ?> ;'></div>
}
[PHP]
I hope you get what I mean :$. It's hard to make a script on a mobile phone.
Verstuurd van mijn GT-I9000 met Tapatalk