title: Show message before and after certain time
body: <p>Currently i am working on a webshop which sends it's orders placed before 17:00 the same day. On the succes or thank-you page i would like to place a message if it's before 17:00, after 17:00 and in the weekends. So three messages.</p>
  
  <p>I'm trying this with PHP now: </p>
  
  <pre><code>&lt;?php
              //Show message
              $before_17 = "Order received before 17:00, will ship today.";
              $after_17="Order placed after 17:00, will ship tomorrow.";
              $weekend = "It's weekend, order will be shipped on Monday.";
  
              //Time &amp; Day
              $current_time = date(H);
              $current_day = date(D);
  
              //Saturday
              if ($current_day == Sat){
              echo $weekend;
              }
  
              //Sunday
              elseif ($current_day == Sun){
              echo $weekend;
              }
  
              //Weekdays &gt; 17
              elseif ($current_time &gt; 17){
              echo $after_17;
              }
  
              //Weekdays &lt; 17
              elseif($current_time &lt; 17){
              echo $before_17;
              }
  
              else{
              echo 'Niks';
              }
          ?&gt;
  </code></pre>
  
  <p>I was hoping this should do the trick, but the page still shows the $before_17 after 17:00. Am i doing something wrong? </p>