WIP: Blogposts

This commit is contained in:
2025-12-02 17:41:24 +02:00
parent b69f8f5f1b
commit 7d078cb954
20 changed files with 1038 additions and 13 deletions

View File

@@ -1784,8 +1784,8 @@ function getCommentCount($page_id) {
$conn = openDatabaseConnection();
// Prepare statement to avoid SQL injection
$stmt = $conn->prepare("SELECT COUNT(*) FROM comments WHERE page_id = ?");
$stmt->bind_param("i", $page_id);
$stmt = $conn->prepare("SELECT COUNT(*) FROM comments WHERE `page_id` = ?");
$stmt->bind_param("s", $page_id);
$stmt->execute();
// Get result