Welcome Guest, Not a member yet? Register   Sign In
Is session->userdata supposed to return an array?
#3

[eluser]Unknown[/eluser]
No custom library. Just the default one, autoloaded.

Oh my, I've given false information in the first post. Apparently the array originates straight from the database.
Code:
$query = $this->db->query("SELECT id FROM users WHERE user = 'asd'");
$id = $query->result();

I'm brand new to CI, so I might be oblivious about correct syntax etc. Any ideas?


Messages In This Thread
Is session->userdata supposed to return an array? - by El Forum - 08-17-2010, 06:48 PM
Is session->userdata supposed to return an array? - by El Forum - 08-18-2010, 02:14 AM
Is session->userdata supposed to return an array? - by El Forum - 08-18-2010, 05:58 AM
Is session->userdata supposed to return an array? - by El Forum - 08-18-2010, 07:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB