Welcome Guest, Not a member yet? Register   Sign In
[Solved] Delete row if key code is there for more than 15 min
#5

Just like the first "where" clause, add two extra paramaters NULL and FALSE to it:
PHP Code:
    $this->db->where('date_modified < UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 15 MINUTE))',NULL,FALSE); 
This will override the normal syntax of db->where, which takes 2 parameters: fieldname and conditional value.
Reply


Messages In This Thread
RE: Delete row if key code is there for more than 15 min - by Wouter60 - 02-05-2017, 11:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB