• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[question - solved] Join - active record

#1
[eluser]wemago[/eluser]
oks i couldnt find any awnser for this in the forum.

Code:
$this->db->select('username');
        $this->db->from('users');
        $this->db->join('articles', 'articles.author_id = users.user_id');
        
        return $this->db->get();

I'm trying to get a username and all i get is this ->
Quote:Object id #19

any idea why?it should give me the name.

thanx


Messages In This Thread
[question - solved] Join - active record - by El Forum - 08-07-2007, 03:16 PM
[question - solved] Join - active record - by El Forum - 08-07-2007, 04:07 PM
[question - solved] Join - active record - by El Forum - 08-07-2007, 04:16 PM
[question - solved] Join - active record - by El Forum - 08-07-2007, 04:36 PM
[question - solved] Join - active record - by El Forum - 08-07-2007, 06:23 PM
[question - solved] Join - active record - by El Forum - 08-08-2007, 12:16 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.