this doesnt work: i believe it is $row_QCBD_GHOUR S["$day2"] that is the
problem.
// assign $day var
$day1= date('D')."1";
$day2= date('D')."2";
$open= $row_QCBD_GHOUR S["$day1"];
$close= $row_QCBD_GHOUR S["$day2"];
$hour= date('h') + 2;
$minute= date(i);
$time= $hour . ".$minute";
//ghours
if (($time > $row_QCBD_GHOUR S["$day1"]) && ($time <
$row_QCBD_GHOUR S["$day2"])){
$openclose= '<font color=green>Ope n</font>';
}else{ $openclose= '<font color=red>Close d</font>';
}
when i change $row_QCBD_GHOUR S["$day2"] to a number it works like its
supposed to, so for some reason $row_QCBD_GHOUR S["$day2"] in that
location is not working. i can print out $row_QCBD_GHOUR S["$day2"] in
other places and it works, just not in that location. so i dont know, i
have no idea. if anyone can help me thatd be great. thanks a lot.
problem.
// assign $day var
$day1= date('D')."1";
$day2= date('D')."2";
$open= $row_QCBD_GHOUR S["$day1"];
$close= $row_QCBD_GHOUR S["$day2"];
$hour= date('h') + 2;
$minute= date(i);
$time= $hour . ".$minute";
//ghours
if (($time > $row_QCBD_GHOUR S["$day1"]) && ($time <
$row_QCBD_GHOUR S["$day2"])){
$openclose= '<font color=green>Ope n</font>';
}else{ $openclose= '<font color=red>Close d</font>';
}
when i change $row_QCBD_GHOUR S["$day2"] to a number it works like its
supposed to, so for some reason $row_QCBD_GHOUR S["$day2"] in that
location is not working. i can print out $row_QCBD_GHOUR S["$day2"] in
other places and it works, just not in that location. so i dont know, i
have no idea. if anyone can help me thatd be great. thanks a lot.
Comment