Welcome Guest, Not a member yet? Register   Sign In
Query translation in Active Record format
#2

[eluser]Alhazred[/eluser]
Here what I've tried
Code:
$this->db->select('c.id AS id, c.name AS name, t.name AS category');
$this->db->from('category c, tipo_category t');
$this->db->where('t.id','c.category');

$result = $this->db->get();
I don't have any error, but that generates an empty result, while the SQL version finds 3 records.


Messages In This Thread
Query translation in Active Record format - by El Forum - 07-17-2012, 02:30 PM
Query translation in Active Record format - by El Forum - 07-17-2012, 11:59 PM
Query translation in Active Record format - by El Forum - 07-18-2012, 12:10 AM
Query translation in Active Record format - by El Forum - 07-18-2012, 05:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB