.put()
代码中是否有引号规则违规。因为数据库没有更新。
答案 0 :(得分:2)
你缺少逗号,
mysqli_query($connect,"UPDATE student SET name='$name',rollnumber='$nrollnumber', mark='$mark', department='$department' WHERE rollnumber='$rollnumber'");
答案 1 :(得分:0)
mysqli_query($connect,"UPDATE student SET name='".$name."', rollnumber='".$nrollnumber."', mark='".$mark."', department='".$department."', WHERE rollnumber='".$rollnumber."'");