Hi Guys,
I'm a bit of a newbie, but I like to think I learn quick :)
I have a piece of code that's working well to show that a job listing has expired. Can anyone tell me if there is a simple way of telling it not to show at all. Ideally if a job entry has expired it doesn't want to be seen in the front end.
I've done a lot of searching, copying, pasting and tweaking, but can't find anything that can do the job.
the code is...
<td>
<a href="<?php echo $link_detail; ?>"><?php echo $row->job_title; ?></a><?php $now = date('Y-m-d H:i:s', time() + ( $mainframe->getCfg('offset') * 60 * 60 ) );
if($row->expire_date != "0000-00-00 00:00:00" && $row->expire_date < $now)
{
echo '(expired)';
}
?>
</td>
Any pointers would be really greatly appreciated.
Thanks in advance