title: How to create a timer
body: <p>I have a <code>$dbSessionDuration</code> variable where by using mysqli, it is able to bind the result of data from the query into this variable. The <code>$dbSessionDuration</code> variable holds time so the variable has a time format as below:</p>
  
  <p>01:30:10</p>
  
  <p>Now that means 1 hour 30 mins and 10 seconds. What I want to do is display <code>$dbSessionDuration</code> value in a timer so that in above's example it will start ticking down from 01:30:10 and go all the way to 0 when it stops. My question is how do you create timer and place whatever value <code>$dbSessionDuration</code> value in the timer to count down to 00:00:00?</p>