Advertisement
reenadak

updating the modified time

Mar 25th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. updating modified time.
  2.         $this->Editor->setConfig('afterEditFun', array(
  3.             &$this,
  4.             'updateModifiedTime'
  5.         ));
  6.  
  7. and
  8.  
  9.     function updateModifiedTime($id, $col, $info)
  10.     {
  11.         $mt     = date('Y-m-d H:i:s');
  12.         $query  = "update " . tblMain . " set modified_at = '" . $mt . "' where id = '" . $col . "' ";
  13.         $result = $this->Editor->doQuery($query);
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement