I am finishing up converting the RC5 PHP stats to OGR PHP stats. I am stuck on one thing. I am trying to get the table to have alternating colors, similar to the tables on DNet, using colors #ffffdd & #dddddd. I set a variable of $backcolor and put in a if/else statement telling it to alternate through each pass, but for some reason all I could get it do do was change on the first pass, the rest wouldn't change, they would stay the same as the first pass.
Here is a link to the code of the page Code and here is a link to the page itself Stat Page.
Basically, here is what I had added:
$backcolor=ffffdd
if ($backcolor=ffffdd) {
$backcolor=dddddd;
} else {
$backcolor=ffffdd;
}
I tried putting this in various places in the while statement, again with no luck past the first pass of the table building. Any advice on what I am doing wrong would be greatly appreciated.
Jay
Here is a link to the code of the page Code and here is a link to the page itself Stat Page.
Basically, here is what I had added:
$backcolor=ffffdd
if ($backcolor=ffffdd) {
$backcolor=dddddd;
} else {
$backcolor=ffffdd;
}
I tried putting this in various places in the while statement, again with no luck past the first pass of the table building. Any advice on what I am doing wrong would be greatly appreciated.
Jay