Welcome Guest, Not a member yet? Register   Sign In
Problem using model method inside an if statement
#4

[eluser]BrianDHall[/eluser]
Assign $this->form_validation->run() to a variable, then run var_dump() on it and see just what its returning for you. Then you will know what you need to test for in your loop. If it returns boolean false, then you just need $result == FALSE or just if($result) - I suspect something is going wrong in your form and all it ever does is return FALSE, but you'll need to assign it to a variable and check it to be sure.


Messages In This Thread
Problem using model method inside an if statement - by El Forum - 09-21-2009, 06:16 AM
Problem using model method inside an if statement - by El Forum - 09-21-2009, 07:41 AM
Problem using model method inside an if statement - by El Forum - 09-21-2009, 07:55 AM
Problem using model method inside an if statement - by El Forum - 09-21-2009, 08:27 AM
Problem using model method inside an if statement - by El Forum - 09-21-2009, 08:41 AM
Problem using model method inside an if statement - by El Forum - 09-21-2009, 09:23 AM
Problem using model method inside an if statement - by El Forum - 09-21-2009, 09:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB