query( "UPDATE staff SET staff_password = '".$enc_password."' WHERE staff_id = '".$staff_info['staff_id']."'" ) ){ $status = '208' ; $mailer = new Mailer() ; $mailer->from = EMAILNOREPLY ; $mailer->to = [ $staff_info['staff_email'] ] ; $mailer->subject = 'Change password' ; $mailer->body = 'Your new password was success change to ' . $array['password'] ; if ( $mailer->send() ){ $status = '200' ; } } } } require( $require_sub.'footer.php' ) ; ?>