title: automatically executing mysql query from php not working
body: <p>I'd like to automatically execute the following PHP script to autmoatically delete a row in table after 3 days. However, the script seems not working, even though the query already yield the correct result. I've tried to run it manually, and it also worked. I'm not sure whether I've written the script correctly, but here's the code:</p>
  
  <pre><code>&lt;?php
  require_once('../../resources/db_connect.php');
  $query = "DELETE FROM user_orders WHERE date_order &lt; DATE_SUB(CURDATE(), INTERVAL 3 DAY) AND ID_status_order = 1";
  $result = @mysql_query($query); 
  ?&gt;
  </code></pre>
  
  <p>I'm using xampp on Windows. I've tried to execute it via Windows Task Scheduler, but I don't think it's working. Any other idea?</p>
  
  <p>Cheers</p>