title: PHP countdown, need it dynamic
body: <p>I have a PHP-script that adds time into a SQL-DB like this:</p>
  
  <pre><code>    $howlong = 75; // Amount of seconds 
      $timetowait=time()+ $howlong; // This inserts into "timetowait" in SQL DB
  </code></pre>
  
  <p>Then to show my users how long they have to wait, I have this:</p>
  
  <pre><code>$timeleft= $rows['timetowait']; // This is the field in DB from above^
  func_time($timeleft); // Function below, which shows the time left
  </code></pre>
  
  <p>The function above is:</p>
  
  <pre><code>function func_time($until){
  $now = time();
  $difference = $until - $now;
  $seconds = $difference;
  $output = "$seconds seconds";
  return $output;
  }
  </code></pre>
  
  <p>It works fine, but I want it to be a dynamic countdown. (Automaticly counting down, without refreshing the site) My problem here, is that I am using the "time()", and not pure text (f.ex 21/11/2013 20:00)</p>