Welcome Guest, Not a member yet? Register   Sign In
Undefined variable: query
#2

[eluser]bigtony[/eluser]
You're going to kick yourself...
Code:
// change this
$this->database->getFieldsAll('info');

// to this
$query = $this->database->getFieldsAll('info');
Also, in your getFieldsAll() function, if the number of rows is not 1 you are not returning anything, but surely you should return FALSE in these instance, like this:
Code:
// this will correctly return TRUE or FALSE
return ($query->num_rows == 1);


Messages In This Thread
Undefined variable: query - by El Forum - 11-13-2009, 11:32 PM
Undefined variable: query - by El Forum - 11-14-2009, 02:32 AM
Undefined variable: query - by El Forum - 11-14-2009, 07:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB