Could someone please explain to me why this code did not work?
I fixed it by using the code below, but it makes no sense to me why the ">" sign did not work above and why the "<" seems to work here. What gives???Code:if($SQL_Pick_Date > '2010-8-31'){ $Fac_Fee = $Fac_Fee + 3.50; }
With the top code, it adds 3.50 no matter what the date is. Are you supposed to modify the ">" , maybe ">>" as you do with "=="?Code:$startdate = "2010-9-1"; if($SQL_Pick_Date < $startdate){ $Fac_Fee = $row['fac_fee']; } else { $Fac_Fee = $Fac_Fee + 3.50; }
Baffled.



Reply With Quote
Hope this helps!

Bookmarks