Welcome Guest, Not a member yet? Register   Sign In
Trouble passing results from the model to the controller
#4

[eluser]seavers[/eluser]
Whoa, great response, thanks guys.

Lab Technicians answer works, and just to double check I understood the code, I converted it back to longhand Wink

Code:
if ($query->num_rows > 0) {
        
            return TRUE;
            
        }
        
        else {
        
            return FALSE;
            
        }

I shall do my checks in the model, makes sense to just return a boolean. Cheers!


Messages In This Thread
Trouble passing results from the model to the controller - by El Forum - 10-21-2008, 04:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB