Hey
I have a script that is within a while loop that sets the bgcolor of a td tag and sets a div within that td tag.
if($dep_date <= $date_c1){
$bg = " style=\"background-color: #e3e3e3;\"";
$newdiv = "";
}else{
$bg = "";
$newdiv = "<div id=\"scrolltome\"></div>";
}
Is there a way to get this to see the first date that is > $date_c1 and put $newdiv = "<div id=\"scrolltome\"></div>"; on that one only.
I figure it'd be done with an IF statement, but I'm not sure what the condition for the IF should be.
Thanks in advance for any idea's.
Iquil