Hello,
Can anyone tell me where I'm going wrong with the following code?
<?php
$downloadDeadline = "01062003";
echo $downloadDeadline."--";
$today = date("dmY");
echo $today."--";
if ($downloadDeadline > $today){
echo "can download";
}else{
echo "can't download";
}
?>
I get the following output:
01062003--17042003--can't download
I'm expecting to see the dates and "can download" because the $downloadDeadline is greater than $today. What have I done wrong?
Any help is really appreciated.