Welcome Guest, Not a member yet? Register   Sign In
WHERE `column` = `column`
#3

[eluser]skunkbad[/eluser]
[quote author="Jamie Rumbelow" date="1273114538"]You can pass a single string to $this->db->where() and it'll work fine. So:

Code:
$this->db->where('column_a = column_b');

Jamie[/quote]

Well, I had to use backticks to make it work. Thanks

Code:
$where = 'product_id = `product_group`';
$this->db->where($where);


Messages In This Thread
WHERE `column` = `column` - by El Forum - 05-05-2010, 03:33 PM
WHERE `column` = `column` - by El Forum - 05-05-2010, 03:55 PM
WHERE `column` = `column` - by El Forum - 05-05-2010, 04:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB