diff --git a/ajax.php b/ajax.php index d3be0ef..07ca083 100644 --- a/ajax.php +++ b/ajax.php @@ -126,10 +126,10 @@ switch($_GET["action"]) { if(hasval($_POST["id"]) && hasval($_POST["was"])&& hasval($_POST["container"])) { /* Prepared statement, stage 1: prepare */ $was=$_POST["was"]; - if (!($stmt = $mysqli->prepare("UPDATE found_items SET was=?, wo=?, wann=?, container=? WHERE id = ?"))) { + if (!($stmt = $mysqli->prepare("UPDATE found_items SET was=?, wo=?, wann=?, container=?, uid=? WHERE id = ?"))) { $errormsg = "Prepare failed: (" . $mysqli->errno . ") " . $mysqli->error; } - if (!$stmt->bind_param("ssssi", $_POST["was"] , $_POST["wo"], $_POST["wann"], $_POST["container"], $_POST["id"])) { + if (!$stmt->bind_param("sssssi", $_POST["was"] , $_POST["wo"], $_POST["wann"], $_POST["container"], $_POST["uid"], $_POST["id"])) { $errormsg = "Binding parameters failed: (" . $stmt->errno . ") " . $stmt->error; } if (!$stmt->execute()) { diff --git a/templates/found_item_edit.php b/templates/found_item_edit.php index d3857e9..cd7b7c8 100644 --- a/templates/found_item_edit.php +++ b/templates/found_item_edit.php @@ -9,9 +9,9 @@

">

-

">

+

">

">

-

">

+

">

">