:: Forum >> Version 1 >>

Color Changing Tables

Hey all,

I dont kno if this is the best way to put it, but i'll give it a try. My friend asked me to build him a portal like the one on http://www.chrome-arrow.com/Portal%20v1/portal.php and i'v done everything except the colors, when the votes have passed a certain number. i tried adding this php script but i get an error:

<?php
//tells if submission is excellent (score higher than 7.0), okay (score between 3.0 and 7.0), or bad (score lower than 3.0)
if ($row['vote'] <= 3.0)
{
bgcolor="#FFFFFF";
}
else if ($row['vote'] > 3.0 && $row['vote'] <= 7.0)
{
bgcolor=#000000";
}
else if ($row['vote'] > 7.0)
{
bgcolor="454545";
}
echo("<br>");
}
?>
any help would be appreciated, netsix@gmail.com , thanks
PHP Man Needs Hlp
Tuesday, April 12, 2005



This topic is archived.

Back to support forum

Forum search