Ejemplo n.º 1
0
 function CleanUpAgent()
 {
     $err_mess = CEvent::err_mess() . "<br>Function: CleanUpAgent<br>Line: ";
     global $DB;
     $strSql = "DELETE FROM b_event WHERE DATE_EXEC <= dateadd(day, -7, getdate())";
     $DB->Query($strSql, true);
     return "CEvent::CleanUpAgent();";
 }