Welcome Guest, Not a member yet? Register   Sign In
What does Active record return
#5

[eluser]smilie[/eluser]
Just for the good order, Active Class returns boolean type, as already explained 1 or 0, TRUE or FALSE;

I am telling this, just because you can also do stuff like this;

Code:
$result = $this->db->get()->result_array();
if($result) { ... }

Meaning, if there is any result, $result will be TRUE (or 1);

Cheers,
Smilie


Messages In This Thread
What does Active record return - by El Forum - 04-08-2012, 06:44 AM
What does Active record return - by El Forum - 04-08-2012, 07:15 AM
What does Active record return - by El Forum - 04-08-2012, 07:39 AM
What does Active record return - by El Forum - 04-08-2012, 08:47 AM
What does Active record return - by El Forum - 04-10-2012, 04:14 AM
What does Active record return - by El Forum - 04-10-2012, 08:20 AM
What does Active record return - by El Forum - 04-10-2012, 08:31 AM
What does Active record return - by El Forum - 04-10-2012, 01:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB