adilmarwat Posted March 8, 2010 Share Posted March 8, 2010 <?php$currentDate = date(""); $expiry_date = date('14-03-2010'); if($currentDate <= $expiry_date) { echo '<a href="apply.php">Apply Online</a>'; } else echo 'Apply Closed';?>Problem is that when I change my system date to i.e 18-03-2010 it does not disply'Apply Closed'.please help so solve my code? Adil Link to comment Share on other sites More sharing options...
jeffman Posted March 8, 2010 Share Posted March 8, 2010 Read about the correct use of date()http://us2.php.net/manual/en/function.date.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.