本帖最后由 坏小子8 于 2021-9-4 21:24 编辑
[Asm] 纯文本查看 复制代码
<?php
include_once("../config.php");
$uid = $_GET['uid'];
$lxr = $_GET['lxr'];
$tel = $_GET['tel'];//手机号
$bmm = $_GET['bmm'];
//$gzms = $_GET['gzms'];
$t=time();
//$wxid = $_GET['wxid'];
$uid = str_ireplace($search, '', $uid);
$lxr = str_ireplace($search, '', $lxr);
$tel = str_ireplace($search, '', $tel);
$bmm = str_ireplace($search, '', $bmm);
$bm=intval($_GET['bm']);
$wxid=intval($_GET['wxid']);
if($wxid ==0){
$sql="insert into user (openid, juese, ming, tel, username, tbsj) values
('$uid', '$bmm', '$lxr', '$tel','$tel', $t)";
//$sql = str_replace(PHP_EOL, '', $sql);
mysqli_query($con,$sql);
$id = mysqli_insert_id($con);
if($id){
$result = '{"status":"1","msg":"ok"}';
$ok = true;
}else{
$result = '{"status":"0","msg":"提交失败,请重试"}';
$ok = false;
}
echo $result;
}
?>
试了几个方法都验证不行 请直接贴代码 先行感谢 |