title: Get time from database and compare
body: <p>I want to get time from database then use it to compare with current time. How can i do it?</p>
  
  <pre><code>$timeStart = $row['timeStart'];
  echo 'Time Start : '.$timeStart;
  echo "&lt;/br&gt;";
  $time_offset =ICT; // Change this to your time zone
  $time_a = ($time_offset * 120);
  $time = date("M-d-Y H:i:s",time() + $time_a);
  echo 'Current time is : '.$time;
  echo "&lt;/br&gt;";
  if ($timeStart + $timeForEachDownload &gt; $time) $totalDownload = $totalDownload + 1;
  </code></pre>