Answer the question
In order to leave comments, you need to log in
How to update records in db in yii2?
Why does it not update the record, but makes a new one, driving in only the password?
How to update an entry?
$db = new user_login;
$res = $db->findOne(['email' => $mail]);
$pass = md5($pass);
$db->pass = $pass;
$db->save();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question