Welcome Guest, Not a member yet? Register   Sign In
Returning Boolean Values from model not working
#7

[eluser]fesweb[/eluser]
Weird.

Anyway, my last idea on this is to try having your function return the num_rows() value instead of the $mybool. Then you can test that with your controller.

Doesn't solve the larger problem, but it should make the controller work.
Code:
//UPDATE
        $this->load->model('client/Client_model');
        if ($this->Client_model->UpdateClientEmail($_POST) > 0)
        {
            echo "User name already exists";
        }
        else
        {
            echo $_POST[$type];
        }


Messages In This Thread
Returning Boolean Values from model not working - by El Forum - 10-30-2008, 02:01 PM
Returning Boolean Values from model not working - by El Forum - 10-30-2008, 08:58 PM
Returning Boolean Values from model not working - by El Forum - 10-31-2008, 08:18 AM
Returning Boolean Values from model not working - by El Forum - 10-31-2008, 08:33 AM
Returning Boolean Values from model not working - by El Forum - 10-31-2008, 08:44 AM
Returning Boolean Values from model not working - by El Forum - 10-31-2008, 08:46 AM
Returning Boolean Values from model not working - by El Forum - 10-31-2008, 08:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB