Here's the code:
if($admincolor != "#FFFFFF"){
$bgcolor="#000000";
}else{
$bgcolor=mysql_result($result,0,"bgcolor");
}
The mysql_result will return #FFFFFF. All admin pages have the variable $admincolor="#FFFFFF";. I want web site bg to be black and admin bg to be white.
Basically, the website has a background color in a CSS file set by the admin backend. However, the admin uses the same CSS file but I wanted it to be a different color. So I set a variable on every admin page to flag the CSS file to use a different color if the variable is set.
It works but, the website bg will randomly go from one color to the other when you refresh it alot or just surf around. How can I make it work every time?
This is a huge program, so I have to do it here this way some how.
Check it out at this page and hit the refresh about 5 times.