Files
ops-Gazelle/sections/comments/get.php
T

12 lines
154 B
PHP

<?php
$postId = (int)$_GET['postid'];
if (!$postId) {
error(404);
}
echo $DB->scalar("
SELECT Body FROM comments WHERE ID = ?
", $postId
);