title: How to show timer using php?
body: <p>code:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Timer&lt;/title&gt;
      &lt;/head&gt;
  &lt;body&gt;
      &lt;?php
          $dbSessionDuration = "1:30:00";
          list($hour,$min,$sec) = explode(':', $dbSessionDuration);
          $dbSessionDurationTime = mktime(0,0,0,$hour,$min,$sec);
      ?&gt;
      &lt;div class="count"&gt;&lt;/div&gt;
      &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          var millis = &lt;?php echo $dbSessionDurationTime; ?&gt;
          function displaytimer(){
              var hours = Math.floor(millis / 36e5),
                  mins = Math.floor((millis % 36e5) / 6e4),
                  secs = Math.floor((millis % 6e4) / 1000);
                  $('.count').html(hours+':'+mins+':'+secs);  
          }
          setInterval(function(){
              millis -= 1000;
              displaytimer();
          }, 1000);
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In this code I want to create a timer and the time will start after <code>1:30:00</code> and then it decrease by second like <code>1:29:59</code> then <code>1:29:58</code> like this but now when I  use to get time inside the <code>class="count"</code> not happen. I don't know why? So, How can I fix this issue? please help me.</p>
  
  <p>Thank You </p>