PHP if based on current system date
<p>Trying to setup a page that auto updates based on the users date/time.</p>

<p>Need to run a promotion for 2 weeks and each day it needs to change the displayed image.
Was reading through <a href="http://www.thetricky.net/php/Compare%20dates%20with%20PHP" rel="nofollow">http://www.thetricky.net/php/Compare%20dates%20with%20PHP</a> to get a better handle on php's time and date functions.Somewhat tricky to test, but I basically got stuck on:</p>

<pre><code>&lt;?php
$dateA = '2012-07-16'; 
$dateB = '2012-07-17'; 

if(date() = $dateA){ 
  echo 'todays message';
}
else if(date() = $dateB){
    echo 'tomorrows message';
}
?&gt;
</code></pre>

<p>I know the above function is wrong as its setup, but I think it explains what I am aiming for.
Time is irrelevant, it needs to switch over at midnight so the date will change anyway.</p>
