PHP date/due date
<p>I'm asking for an algo/idea to solve my problem. This is the scenario:</p>

<ul>
<li>due date is Nov 21, 2011</li>
<li>current date is Nov 18, 2011</li>
<li>3 days before the due date, I want an image to appear on the div [days is dynamic]</li>
</ul>

<p>So meaning on nov 18, 2011 the div as an image already, the following day nov 19, 2011 the div has also image and same scenario on nov 20, 2011. But on Nov 17, 2011 there is no image on the div</p>

<p>how can I do it with PHP? Don't mind the image on the div. I'll handle that. Just only the condition on the dates.</p>

<p>anyone who can give me algo/idea? only algo/idea..
Thanks,
Justin</p>
