$color = 'bgcolor="#37521a"';
$sty = implode( ',', $_POST['row'] );
$query = 'UPDATE test SET color = ' .$color. ' WHERE id IN ('.$sty.')';
mysql_query( $query );
header( 'Location: '.$_SERVER['PHP_SELF'] );
$colorCode = "#37521a";
$query = "UPDATE test SET color = 'bgcolor=" . $colorCode . " ' WHERE id IN (' . $sty . ')";