Update overview.php

This commit is contained in:
Janis Steiner
2024-06-27 13:43:30 +00:00
committed by GitHub
parent a1ec1a3eaf
commit 0ab980ce86

View File

@@ -69,7 +69,7 @@ function load_user()
$_SESSION["rid"]=0; $_SESSION["rid"]=0;
$_SESSION["rid"]++; $_SESSION["rid"]++;
if(isset($_GET["set_class"]) && $_POST["class"]!==""){ if(isset($_GET["set_class"]) && isset($_POST["class"])){
$class_id=htmlspecialchars($_POST["class"]); $class_id=htmlspecialchars($_POST["class"]);
$sql="update users set class_id=$class_id where username='$username'"; $sql="update users set class_id=$class_id where username='$username'";
$stmt = mysqli_prepare($link, $sql); $stmt = mysqli_prepare($link, $sql);