Anunciantes |
Visualizando códigoPostado por Anônimo em 10/03/2010 10:20:37.
http://paste.lymas.com.br/1115
$events = $db->from('cases_events_types as c')
->select('c.id') ->select('c.name') ->join('cases_phases_types_commentary as e','e.cases_events_type_id','c.id','LEFT') ->orwhere(array('c.id'=>(int) $cases_events_type_id)) ->orwhere(array('e.cases_phases_type_id'=>(int) $cases_phases_type_id)) ->where(new Database_Expression('e.id IS NOT NULL')) ->where('c.status', 1) ->where('c.trash', 0) ->get(); Colando um novo código |
MenuNovo Código SobreRecentesphpricardo30/08/2010 17:52:43 amaro 30/08/2010 17:30:41 tiago_a 30/08/2010 16:19:32 tiago_a 30/08/2010 16:04:34 Anônimo 28/08/2010 07:10:52 TDOS 26/08/2010 21:18:16 Anônimo 26/08/2010 12:23:00 Anônimo 26/08/2010 12:18:44 GoldMen 25/08/2010 14:47:38 Anônimo 25/08/2010 14:47:37 |