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;
- $sql = "update base_user set USER_NAME = '$post[login_name]',PHONE_NO = '$post[bound_tel]' where ID = $post[id]";
- $result = $pdo ->exec($sql);
- if($result){
- $code = 0;
- $info = 'success';
- $massge = '成功';
- }else{
- $code = -1;
- $info = 'fail';
- $massge = '失败';
- }
-
- $json['code'] = $code;
- $json['info'] = $info;
- $json['massge'] = $massge;
- echo json_encode($json);
-
- ?>
|