21,886
社区成员
发帖
与我相关
我的任务
分享
$update="update user set name=".$_POST['yh']." , "."pw=".$_POST['mm']."where id=".$_GET['id'];
我更改为这样之后还是未定义,是不是我在上一张表单里没传ID过去啊if($_GET['action']=="update"){
if(!($_GET['yh'] & $_GET['mm'])){
echo "不允许为空";
}
else
{
include_once("conn/conn.php");
$update="update user set name=".$_GET['yh']." , "."pw=".$_GET['mm']."where id=".$_GET['id'];
$result=mysqli_query($conn,$update);
if($result){
echo "修改成功";
}
}
}
我改为了这个,还是未定义ID呀;我拿来测试的网址是http://47.106.125.233/allselect.php,我的FTP是ftp://huaxia1.top