query("select * from users where `phone`='".$phone."'".' limit 1'); $user=$user_stmit->fetch(PDO::FETCH_ASSOC); if(!empty($user))exit(json_encode(['code'=>0,"msg"=>"改手机号已存在"])); $stmit=$pdo->prepare("insert into users(`phone`,`password`,`created_at`, `updated_at`)values(?,?,?,?)"); $stmit->execute(array($phone,$password,$time,$time)); $id=$pdo->lastInsertId(); $_SESSION['admin_id']=$id; exit(json_encode(array("code"=>1,"msg"=>"注册成功"))); } ?> 话费充值平台

话费充值平台

注册

已有账号?点击登录