Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Richard Trussler
Added: Sep 17, 2018 10:06 AM
Modified: Sep 17, 2018 10:06 AM
Views: 5
Tags: cdb compare
Database Test with compare
  1.   $c = new CDbCriteria();
  2.         $c->addCondition('t.start_time <= '.time());
  3.         $c->compare('t.status', 1);
  4.         $c = self::addLookupConditions($now, $c);