This content has been marked as final.
Show 3 replies
-
1. Re: PHP show if datetime hasn't passed
Sudarshan Thiagarajan Apr 1, 2013 7:01 PM (in response to matthew stuart)Try this. Edit based on your requirement.
<?php if (time() <= strtotime('May 1, 2013')) { ?>
<div>This content will show until May 1st 2013</div>
<?php } ?> -
2. Re: PHP show if datetime hasn't passed
matthew stuart Apr 5, 2013 1:49 AM (in response to Sudarshan Thiagarajan)Thanks Sudarshan, that worked a treat when I added my recordset column.
<?php if (time() <= strtotime($row_recordsetname['column_name'])) { ?>
CONTENT TO HIDE
<?php } ?>
As an example for others.
Thanks again.
-
3. Re: PHP show if datetime hasn't passed
Sudarshan Thiagarajan Apr 5, 2013 1:50 AM (in response to matthew stuart)You're welcome, Matthew!



