
Damon
Staff
/ Moderator

May 22, 2009, 2:15 PM
Post #9 of 10
(4435 views)
Shortcut
|
|
Re: [thenetgirl] Open House date Help
[In reply to]
|
Can't Post
|
|
Hi, Try adding this code to your listings.php template:
<?php $current_date = date('U'); $openhouse_date = date('U', strtotime($record['open_house'])); ?> <?php if($current_date < $openhouse_date) : ?> <strong>Next Open House: </strong><?php echo date("D, M jS, Y g:i a", strtotime($record['open_house'])) ?><br /> <?php endif; ?> This checks the current date, then compares it to see if it is less than the Open House Date. If it is, it outputs the open house details. Give that a try and let me know how it works out. --------------------------------------------------- Cheers Damon Edis interactivetools.com Hire me! Save time by getting our experts to help with your project. http://www.interactivetools.com/consulting/
|