PHP filter by Date
Hi Chaps,
I have a bit of PHP code, that at the moment doesn't work.
I'm trying to show all the 'overdue' projects in a different style:
<?php if ($row_rsProjects['projdue'] == '= DATE(NOW())') { ?>
<tr class="overdue">
<?php } else if ($row_rsProjects['projdue'] == '< DATE(NOW())') { ?>
<tr class="duetoday">
<?php } else { ?>
<tr class="within">
<?php }?>
The
| '= DATE(NOW())' |
works with MySQL, but I don't know how to get it to work with PHP. Any ideas?
