title: PHP not displaying time from database correctly
body: <p>I have a script that count downs the time until an event start</p>
  
  <p><img src="https://i.stack.imgur.com/02CC8.png" alt="enter image description here"></p>
  
  <p>Start date and start time is retrieved from a database.</p>
  
  <p><strong>My Problem</strong></p>
  
  <p>Days is calculated correctly but <strong><em>hours</em></strong> are the same for each event and does not get calculated correctly</p>
  
  <pre><code>while(){
  $gameDate = $row['event_date'];
  $time=$row['event_time'];
  
          $calcDate = $gameDate.$time;
          $calcDate =  strtotime(str_replace('/', '-', $gameDate)); 
          $remaining = $calcDate - time();
          $days_remaining = floor($remaining / 86400);
          $hours_remaining = floor(($remaining % 86400) / 3600); 
  }
  </code></pre>
  
  <p><strong>EVENTS table</strong></p>
  
  <p><img src="https://i.stack.imgur.com/qYGtJ.png" alt="enter image description here"></p>
  
  <p>Again notice in the 1st image how hours are displayed as 13 for both events even though it is different times for both events in the database</p>
  
  <p><em>Any idea what I am doing wrong here or how I can improve the script?</em></p>