but to update my status it didnt work
for ($y=0; $y<sizeof($dateList); $y++)
{
if ($dateList[$y]== sprintf("%02d", $dcv))
{
echo $dateList[$y]."<br>".sprintf("%02d", $dcv)."<br>";
$bcv = "silver";
}
else
{
echo $dateList[$y]."<br>".sprintf("%02d", $dcv)."<br>";
$bcv = "red";
}
}
echo "<td align=center bgcolor=".$bcv."><font face=Arial size=-1>".$dcv."</font>";
echo "</td>\n";
this almost works, i echoed out every comparisons, and for example one of the values is 02, and there is a 02 in the array but when it prints the 02 cell it prints red, in fact the only one that doesnt is 30, and the array contains about 20 days, but i will now try the in array thanks again for the help?