新增用户query($sql)->fetch_all(); if (!empty($_POST)){ $name = $_POST['name']; $sex = $_POST['sex']; $birth_start=$_POST['birth_start']; $birth_end = $_POST['birth_end']; $sql .= !empty($name)? "and name like '%{$name}%'":""; $sql .= !empty($sex)? "and sex like '%{$sex}%'":""; } ?>
query($sql)){ header("location:mxdx2.php"); }else{ header("location:add.php"); }
query($sql2)){ header("location:mxdx2.php"); }
query($sql)){ echo "执行成功"; }