CodeIgniter Forums
return output - 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: return output (/thread-14426.html)



return output - El Forum - 01-02-2009

[eluser]tim1965[/eluser]
Hi i apologise if this is a stupid question. But i am using DX_Auth, which has the follwoing function in its users model. I want to call this function and use the output in an insert statement.
Question how can i access or parameterise the return so i can use it in my insert ?

Thanks in advance.





function get_user_by_id($user_id)
{
$this->db->where('id', $user_id);
return $this->db->get($this->_table);
}



return output - El Forum - 01-02-2009

[eluser]tim1965[/eluser]
Plz ignore stupid post on my part.