Welcome Guest, Not a member yet? Register   Sign In
Any idea why my method isn't returning TRUE?
#2

[eluser]InsiteFX[/eluser]
The $result is returning a $query object so in your controller it is testing
an object not true or false.

Try this:
Code:
if(is_object($result))
{
    echo '<b style="color: green;">Show added:</b> '. $node->showname . '<br/>';
} else {
    echo '<b style="color: red;">Show not added:</b> '. $node->showname . '<br/>';
}

InsiteFX


Messages In This Thread
Any idea why my method isn't returning TRUE? - by El Forum - 04-04-2010, 06:23 AM
Any idea why my method isn't returning TRUE? - by El Forum - 04-04-2010, 11:37 AM
Any idea why my method isn't returning TRUE? - by El Forum - 04-04-2010, 11:43 AM
Any idea why my method isn't returning TRUE? - by El Forum - 04-04-2010, 02:00 PM
Any idea why my method isn't returning TRUE? - by El Forum - 04-04-2010, 02:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB