From 8ae319ec621657c80089a91b1d732b64d7bee67a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Wed, 15 May 2024 19:42:11 +0200 Subject: [PATCH] Add survey --- lib/survey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/survey.php b/lib/survey.php index 375639c..1e72e79 100644 --- a/lib/survey.php +++ b/lib/survey.php @@ -11,7 +11,7 @@ function submitSurvey(int $satisfaction, int $functionality, int $content, strin && $content >= 1 && $content <= 5 && !empty($comment)) { $stmtMemeAdd = $mysqli->prepare('INSERT INTO Survey (AuthorID, Satisfaction, Functionality, Content, Comment) VALUES (?, ?, ?, ?, ?)'); - $stmtMemeAdd->bind_param('issi', $_SESSION['ID'], $satisfaction, $functionality, $content, htmlspecialchars($comment)); + $stmtMemeAdd->bind_param('iiiis', $_SESSION['ID'], $satisfaction, $functionality, $content, htmlspecialchars($comment)); if ($stmtMemeAdd->execute() && $stmtMemeAdd->affected_rows > 0) { $output["Status"] = "Success"; $output["Opinion"] = "Ignored successfully!";