Zocker

为服主提供技术帮助以及服务器服务,为玩家提供有稳定的游戏环境和资源服务。加入联盟 让我们一起合作。

Recent Post

Recent Post
Recent Post

欢迎加入 巫师联盟

合作栏位

NO

很抱歉,当前A-1合作栏位还没有被使用!

需与联盟达成合作关系六个月。方可使用六个月。仅有三个栏位。

关于合作栏位,请阅读 关于我们

connect_error) {//连接失败 echo "对不起,服务器未响应"; echo "
"; } //数据库数据编码格式 $sql = "SET NAMES UTF8"; if($conn->query($sql) === true) { //echo "set success
"; } else { echo "set fail
"; } $server_name = $_POST['server_name']; $server_admin = $_POST['server_admin']; $server_web = $_POST['server_web']; $server_ip = $_POST['server_ip']; $server_version = $_POST['server_version']; $server_qq = $_POST['server_qq']; $server_type = $_POST['server_type']; $server_wizard = $_POST['server_wizard']; $server_adminID = $_POST['server_adminID']; $server_work1 = $_POST['server_work1']; $server_work1ID = $_POST['server_work1ID']; $server_work2 = $_POST['server_work2']; $server_work2ID = $_POST['server_work2ID']; $server_info = $_POST['server_info']; $server_qq2 = $_POST['server_qq2']; //echo $username." ".$password; $result = array(); if($username == "") { $result["result"] = "false"; } else { $add = $conn->prepare("INSERT INTO server(server_name,server_admin,server_web,server_ip,server_version,server_qq,server_type,server_wizard,server_adminID,server_work1,server_work1ID,server_work2,server_work2ID,server_info,server_qq2) VALUES('$server_name','$server_admin','$server_web','$server_ip','$server_version','$server_qq','$server_type','$server_wizard','$server_adminID','$server_work1','$server_work1ID','$server_work2','$server_work2ID','$server_info','$server_qq2')"); $add->bind_param("ss", $server_name,$server_admin,$server_web); $stmt = $conn->prepare("SELECT * FROM server WHERE server_name=?"); $stmt->bind_param("s", $username); $stmt->execute(); $stmt->store_result(); $stmt->bind_result($id); if($stmt->fetch()) { $result["result"] = "false"; } else { $add->execute(); $result["result"] = "true"; } } //echo json_encode($result); ?>