Posted on Tuesday 10th June 2008 at 05:15 PM
A task that no one can solve. It is very hard. I got a css that is suppose to load on the staff page., but my text just comes black when I want it to come white. I dont know why is this happening but it should not have because my css test clour is white, but it just comes black... I don't know why is this happening..
This is staff.php
The following text comes black.
Mods:
There Are No mods Yet
Name of the member
Content/mod
Administration:
They come in black, as you can see thier is no reson for why it should come black as css is used.
Please help
This is staff.php
PHP Code
<LINK REL=stylesheet HREF="includes/lc.css" TYPE="text/css"> <?php include("config.php"); function color($rcolor){//start function to color userlevels $rank = array('0','1','2','3','4','5','6'); //basic levels 1-6 not all used i'm pretty sure :P but never know $color = array('#FFFFFF','#ffffff','#ffffff','#ffffff','#ffffff','#ffffff','#ffffff'); //all your colors for each of the user levels return str_replace($rank, $color, $rcolor); //replace level with color then return the color instead of level :P } //end function echo "<b><u>Administration</u></b>:<Br />"; //admin administration same thing pretty much $getadmins = mysql_query("SELECT * FROM `users` WHERE `userlevel` = '5' ORDER BY `id` ASC"); //get admins order by ID if(mysql_num_rows($getadmins) == '0'){ //no admins?!?! echo "There Are No Admins "; //no admins :) }else{ //maybe.. while($radmin = mysql_fetch_array($getadmins)){ //make our loop. echo "<p class='item_top'><font color="".color($rmods[userlevel])."">$radmin[username]</font> | Content/mod | <a href="index.php?page=members&user=$radmin[username]"><font color="".color($rmods[userlevel])."">Profile</font></a><Br /> </p><BR /> "; //send link with colored name :) } //end loop } //end no admin check :) echo "<b><u>Mods</u></b>:<Br />"; //mods $getmods = mysql_query("SELECT * FROM `users` WHERE `userlevel` = '2' ORDER BY `id` ASC"); //get admins order by ID if(mysql_num_rows($getmods) == '0'){ //no admins?!?! echo "There Are No mods Yet"; //no admins :) }else{ //maybe.. while($rmods = mysql_fetch_array($getmods)){ //make our loop. echo "<table width='100%' border='1' align='center' cellpadding='5' cellspacing='0' bordercolor='#333333' class='table1_2'> <tr> <th><div align='right'><strong>$rmods[username]</strong></div></th> <td><div align='center'>Content / Moderation</td> <td><div align='left'><strong><a href="index.php?page=members&user=$rmods[username]"><font color="".color($rmods[userlevel])."">Profile</font></a><Br /></a></strong></div></td> </tr> </table><BR />"; //send link with colored name :) } //end loop } //end no admin check :) ?>
The following text comes black.
Mods:
There Are No mods Yet
Name of the member
Content/mod
Administration:
They come in black, as you can see thier is no reson for why it should come black as css is used.
Please help