title: How Can I execute a query When Time= this
body: <p>i want to run a query at a specific time</p>
  
  <p>For Example if Time is 5:10:25 execute this query</p>
  
  <p>it tried with following code</p>
  
  <pre><code>date_default_timezone_set("Asia/Calcutta");
  $time=date("h:i:s");
  if ($time=='04:10:00')
  {
  $sql="insert into bsechartsdata (TickerPlantCode,DateTime,OpenPrice,HighPrice,LowPrice,ClosePrice) select DISTINCT TickerPlantCode,DateTime,OpenPrice,HighPrice,LowPrice,ClosePrice from bsepricequotes_latest";
  $query=mysql_query($sql);
  }
  </code></pre>
  
  <p>but the query is not executing 
  where am doing wrong ?</p>