Welcome Guest, Not a member yet? Register   Sign In
does ci support relational db
#2

[eluser]Bart v B[/eluser]
i don't understand youre question.
a relational database has nothing to do with CI or other frameworks.

You want to JOIN two table together, with active Records i gues..

Take a look in the manual Wink
http://ellislab.com/codeigniter/user-gui...ecord.html

Code:
$this->db->select('*');
$this->db->from('blogs');
$this->db->join('comments', 'comments.id = blogs.id');

$query = $this->db->get();

// Produces:
// SELECT * FROM blogs
// JOIN comments ON comments.id = blogs.id


I would not recomend this example, but just play with it.


Messages In This Thread
does ci support relational db - by El Forum - 04-10-2010, 11:13 PM
does ci support relational db - by El Forum - 04-11-2010, 12:41 AM
does ci support relational db - by El Forum - 04-11-2010, 12:43 AM
does ci support relational db - by El Forum - 05-04-2010, 12:59 AM
does ci support relational db - by El Forum - 05-04-2010, 04:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB