You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ChangePW.php 614 B

3 years ago
1234567891011121314151617181920212223
  1. <?php
  2. require_once __DIR__ . '/../HotelLib.php';
  3. /**
  4. * Created by PhpStorm.
  5. * User: Administrator
  6. * Date: 2016/12/1
  7. * Time: 14:10
  8. */
  9. class ChangePWC extends HotelLib
  10. {
  11. function changePW($user_id,$md_agoPwd,$md_nowPwd){
  12. $sql="CALL HT_CHANGE_PASSWORD(".$user_id.",'".$md_agoPwd."','".$md_nowPwd."')";
  13. writeLog(__FUNCTION__ . " sql= " . $sql);
  14. $rowset = $this->DBTool->queryBySql($sql);
  15. $data['code'] = $rowset['code'];
  16. $data['info'] = $rowset['info'];
  17. return $data;
  18. }
  19. }
  20. //$obj = new ChangePWC();
  21. //$data = $obj ->changePW(27,);
  22. //echo json_encode($data);