MKTime - error if month is different
<p>I need to check whether the departure-date is after the arrivaldate.</p>

<p>For example: </p>

<pre><code>arrivaldate 13/3/2012 departure 14/3/2012 -&gt; error = false
arrivaldate 13/3/2012 departure 12/3/2012 -&gt; error = true

$timestamp = mktime(0,0,0,$arrivaldd,$arrivalmm,$arrivalyy);

$timestamp2 = mktime(0,0,0,$departuredd,$departuremm,$departureyy);

if ($timestamp2 &lt;= $timestamp) {$error1 = true;} else {$error1 = false;}
</code></pre>

<p>It works fine, but $error is set false if arrivaldate is 31/3/2012 and departure date 1/4/2012.</p>
