Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]malcomhfc[/eluser]
Ben when i echo $user i just get Array.

Im trying to insert the logged in user into the database table website(for comment system and learning purposes. I know it looks bad but im learning Smile)

Code:
if($this->comment_m->addWebsite(array('doWebsite' => $this->input->post('doWebsite'), 'doUser' => $this->ion_auth->user()->result_array())))

Also tried to do it with out result_array

Code:
if($this->comment_m->addWebsite(array('doWebsite' => $this->input->post('doWebsite'), 'doUser' => $this->ion_auth->user()->result())))

Any idea why the output is Array?

Code:
Error Number: 1054

Unknown column 'Array' in 'field list'

INSERT INTO `comments` (`doWebsite`, `doUser`) VALUES ('http://test.com', Array)


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 05-27-2011, 01:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB