Quote:
Code: if ($shipdate = "0000-00-00") $shipdate="NONE"; |
Should be:
Code:
if ($shipdate == "0000-00-00") $shipdate="NONE";
or
Code:
if ($shipdate === "0000-00-00") $shipdate="NONE";
in your case it's if $shipdate can be assigned the value "000-00-00" which will allways be true.