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.
|
- <?php
- $post = $_POST;
- $passwords = md5("Zzcx8888");
- $sql = "update base_user set USER_PASSWORD = $passwords where ID = $post[id]";
- $result=$pdo->query($sql);
- if($result){
- $code = 0;
- $info = 'success';
- $massge = '成功';
- }else{
- $code = -1;
- $info = 'fail';
- $massge = '失败';
- }
-
- $json['code'] = $code;
- $json['info'] = $info;
- $json['massge'] = $massge;
- //print_r($json);
- echo json_encode($json);
- ?>
|