Welcome Guest, Not a member yet? Register   Sign In
Not printing array
#1

[eluser]xtremer360[/eluser]
I just have no idea when I even do a test run of this controller it does not print the $user_data inside the library activate_user function. I'm not seeing why it wouldn't. Does anyone else? Because clearly what I want to do is match the input with what is store in the database. I'm not getting any errors its just not showing the array.

Activate user form:

http://www.kansasoutlawwrestling.com/kow...16eb38f686

Library

Code:
function activate_user($user_id, $registration_key, $password)
{
    $this->ci->users->purge_na();

    if ((strlen($user_id) > 0) AND (strlen($registration_key) > 0))
    {
        $user_data = $this->ci->users->get_user_by_user_id($user_id);
        print_r($user_data);
        $genPassHash = $this->ci->genfunc->GenPassHash($password);
        echo '<br />';
        print_r($genPassHash[0]);

        if ($user_data['password'] == $genPassHash[0])
        {
            return $this->ci->users->activate_user($user_id, $registration_key, $reGenFromPostPW[]);
        }
        else
        {
            return false;                
        }
    }
    else
    {
        return false;
    }  
}



Messages In This Thread
Not printing array - by El Forum - 02-12-2012, 07:02 PM
Not printing array - by El Forum - 02-12-2012, 07:11 PM
Not printing array - by El Forum - 02-12-2012, 07:18 PM
Not printing array - by El Forum - 02-12-2012, 07:19 PM
Not printing array - by El Forum - 02-12-2012, 07:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB