Welcome Guest, Not a member yet? Register   Sign In
codeigniter pass data from view to model and retirve info
#3

[eluser]markup2go[/eluser]
You probably just need to join the data in the query. Example:

Code:
$this->db->select('photos.*, users.name as username', FALSE);
$this->db->join('users', 'users.user_id = photos.user_id', 'left');
$this->db->group_by('photos.id');
$query = $this->db->get('photos');

Then you may not even need to nest a for loop in the view.


Messages In This Thread
codeigniter pass data from view to model and retirve info - by El Forum - 12-23-2010, 01:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB