Welcome Guest, Not a member yet? Register   Sign In
active record query help
#7

[eluser]Armchair Samurai[/eluser]
I'm not sure why you're dead set on using AR when it doesn't support the feature you're looking for, but if you must do it the hard way:
Code:
$name = $this->db->escape("%$arr[name]%");

$this->db->select('c.id,customer.pid, c.name, c.created_by, c.name AS customer_name, c.notes, cp.name AS parent_customer');
$this->db->where('(cp.name LIKE $name OR c.name LIKE $name OR c.notes LIKE $name)', NULL, FALSE);
$this->db->where('c.is_parent', 0);
$this->db->where('c.active', 1);


Messages In This Thread
active record query help - by El Forum - 02-16-2009, 10:49 PM
active record query help - by El Forum - 02-16-2009, 11:15 PM
active record query help - by El Forum - 02-16-2009, 11:25 PM
active record query help - by El Forum - 02-16-2009, 11:37 PM
active record query help - by El Forum - 02-16-2009, 11:52 PM
active record query help - by El Forum - 02-18-2009, 01:33 AM
active record query help - by El Forum - 02-18-2009, 01:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB