Hello, I have to update the memer information usign external link , below is my example
I am passing below url via mail for login user .
http://localhost/testing_ee/user/user-login/user_id
user : Main Template Group [Template Groups ]
user-login : inside the mail template
user_id : pass dynamic value
below is the member_id = 20 , and i will pass on url.
http://localhost/testing_ee/user/user-login/20
I have created the user-login template like attachment
Now I have fetch the Id and update the information on db
I have set below configuration on templates prefrences
Allo Php ? : yes
Php Pharsing Stage : Input
After submitting code i am using php code on same template and use the below code for update
$this->EE->db->where(‘member_id’, (int) $member_id);
$this->EE->db->update(‘members’, $hashed_pair);
there is not error is generated , and Record is not updated .
Please suggest me