Jump to content

Php Code Help?


Recommended Posts

<?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

Edited by adilmarwat
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...