| Name | Size | Mode | Actions |
|---|---|---|---|
| Update_Course_Preference.php | 13049 | 0644 | editdlrm |
| Update_Course_Preference_Secretarial.php | 5474 | 0644 | editdlrm |
| Update_Profile.php | 4732 | 0644 | editdlrm |
/home/techb158/workloadmatch.com/Teacher/Inc/Update_Profile.php (4732B)
Invalid password configuration.
'; } $password = password_hash($password, PASSWORD_BCRYPT); //$error_msg .= $FUserNames .' '. $Admin_ID .' '. $LUserNames; // $error_msg .= $FUserNames .' '. $random_salt .' '. $LUserNames .' '. $Address .' '. $Phones .' '. $CollegeNames .' '. $Admin_ID .' '. $email .' '. $password ; $user_n=$_SESSION['user_id']; $stmt = $mysqli->prepare('SELECT * FROM teacher_profile WHERE Teacher_ID = ?'); $stmt->bind_param('s', $user_n); $stmt->execute(); $result = $stmt->get_result(); $row = $result->fetch_assoc(); $count =$result->num_rows; if($count > 0) { if (empty($error_msg)) { $stmt2 = $mysqli->prepare("UPDATE teacher_profile SET Password=? WHERE User_Name=? AND Teacher_ID=?"); $stmt2->bind_param('sss', $password, $row['User_Name'], $user_n); if (!$stmt2->execute()) { $stmt2->close(); // header('Location: profile.php?error='.$stmt2->error); set_flash_msg('Client password failure to update!', 'warning'); header('Location: profile.php'); exit(); } $stmt2->close(); } set_flash_msg('User password is updated successfully. Thanks!', 'success'); header('Location: profile.php'); exit(); } }else { set_flash_msg('all information are required!', 'warning'); header('Location: profile.php'); exit(); } }