Welcome Guest, Not a member yet? Register   Sign In
Join two tables with two or three same field
#2

[eluser]Anil3a[/eluser]
Got it .... i just Solved it myself.
Code:
$this->db->select('*');
$this->db->from('gift');
$this->db->join('transact', 'transact.transact= gift.gift_id');
$query = $this->db->get();
return $query->result();

While joining table, the same name of field doesn't matter but must a field should match same to join .... is it.

I think its the answer.


Messages In This Thread
Join two tables with two or three same field - by El Forum - 05-15-2012, 10:14 PM
Join two tables with two or three same field - by El Forum - 05-15-2012, 11:04 PM
Join two tables with two or three same field - by El Forum - 05-17-2012, 02:54 AM
Join two tables with two or three same field - by El Forum - 05-17-2012, 09:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB