Welcome Guest, Not a member yet? Register   Sign In
Active Record Clear Parameters
#3

[eluser]USCTrojans[/eluser]
I think it had to do with not "getting" the result. I queried some data and just tested to see if it came back true. I think that somehow cached the query and until I realized I needed to get() the data, it didn't work. Here's my code:

Code:
$query = $this->db->from('sessions')->where('session_id', $browser_session['session_id']);
  $this->db->get();

so without the second line it broke my other function. I had just been using an if(!query) to test if the session was legitimate.

Thanks


Messages In This Thread
Active Record Clear Parameters - by El Forum - 03-22-2012, 11:07 PM
Active Record Clear Parameters - by El Forum - 03-23-2012, 12:29 AM
Active Record Clear Parameters - by El Forum - 03-23-2012, 12:35 AM
Active Record Clear Parameters - by El Forum - 03-23-2012, 12:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB