0) {
// 如果查询结果不为空,则说明该账号已存在,返回提示信息
echo "";
echo ("");
} else {
// 如果查询结果为空,则可以执行INSERT语句将数据写入数据库
$sql = "INSERT INTO proxy (proxy_acc, proxy_pass, proxy_phone, proxy_name, proxy_rename, proxy_uid, proxy_rename_sta, proxy_type, cr_time, group_id) VALUES ('$proxy_acc', '$proxy_pass','$proxy_phone','$proxy_name','$proxy_rename','$proxy_uid','$proxy_rename_sta','$proxy_type','$cr_time','$group_id')";
if(mysqli_query($con, $sql)) {
$proxy_id = mysqli_insert_id($con); // 获取刚刚插入数据的自增ID
// 将proxy_id插入到shopsy表中的puid字段中
$sql = "INSERT INTO shopsy (puid) VALUES ('$proxy_id')";
mysqli_query($con, $sql);
echo "";
echo ("");
} else {
echo "";
echo ("");
// echo "Error updating record: " . $con->error;
}
}
?>