is the color hard coded in the script? or are you extracting it from a db?
when you say background color, where? for the page? a table?
<?
// extract color from db
$result=@('SELECT bgcolor FROM table_name') or die('<b>Doh!</b>');
$bg_color = mysql_result($result,0);
// to change the bg of the page
echo '<body bgcolor='.$bg_color.'>';
?>
hope this helps
djloc 286