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.
 
 
 
 

20 lines
480 B

  1. <?php
  2. $post = $_POST;
  3. $sql = "update base_user set USER_NAME = '$post[login_name]',PHONE_NO = '$post[bound_tel]' where ID = $post[id]";
  4. $result = $pdo ->exec($sql);
  5. if($result){
  6. $code = 0;
  7. $info = 'success';
  8. $massge = '成功';
  9. }else{
  10. $code = -1;
  11. $info = 'fail';
  12. $massge = '失败';
  13. }
  14. $json['code'] = $code;
  15. $json['info'] = $info;
  16. $json['massge'] = $massge;
  17. echo json_encode($json);
  18. ?>