CodeIgniter Forums
Just a small question relating to relationship - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Just a small question relating to relationship (/thread-31380.html)



Just a small question relating to relationship - El Forum - 06-16-2010

[eluser]dhaulagiri[/eluser]
Probably this question shouldn't be here but I am confused how do we establish relationship between two table in CI ? If I have a 'table_A' with id1 and 'table_B' with id1 and id2 , how do i get the value of table_A.id1 in table B ? Probably this is a database question.

I am developing p2p messaging system in CI, just unable to send message to particular person and reply the same person. any suggestion would be great.


Just a small question relating to relationship - El Forum - 06-16-2010

[eluser]Ener1[/eluser]
Hey dhaulagiri

you should check the join statement of the active record in the user guide

Hope this helps