Hello Everybody,
I am trying to do a statement like this:
if($row->expdate < now()) {echo "<br> Date Failed";}
It is failing on the now() function. I have done this in a SQL statement but it will not work here. What am I doing wrong? If there is another way to do this I would be grateful. I can not use the date() function because my ISP has an older version of PHP that does not support this. The field I am comparing it to is of type DATE not DATETIME.
Thanks,
Zych
I am trying to do a statement like this:
if($row->expdate < now()) {echo "<br> Date Failed";}
It is failing on the now() function. I have done this in a SQL statement but it will not work here. What am I doing wrong? If there is another way to do this I would be grateful. I can not use the date() function because my ISP has an older version of PHP that does not support this. The field I am comparing it to is of type DATE not DATETIME.
Thanks,
Zych