title: Phpscript to do time countdown not working properly
body: <p>This script should do the time countdown and stop at the 0 mark but it enters in a weird loop like the one that can be seen in this gif:</p>
  
  <p><a href="https://gyazo.com/0b028a0ff4d597448f02d3ef4985168e" rel="nofollow">https://gyazo.com/0b028a0ff4d597448f02d3ef4985168e</a></p>
  
  <p>The code:</p>
  
  <pre><code>  &lt;?php
  @include_once ("set.php");
  $game = fetchinfo("value","info","name","current_game");
  $r = fetchinfo("starttime","games","id",$game);
  if($r == 2147483647) die("120");
  $r += 120-time();
  if($r &lt; 0) $r = 0;
  echo $r;
  ?&gt;
  </code></pre>