$query = prepare("SELECT `reports`.*, `boards`.`uri` FROM `reports` INNER JOIN `boards` ON `board` = `boards`.`id` ORDER BY `time` DESC LIMIT :limit");
$query = query("SELECT `reports`.*, `boards`.`uri` FROM `reports` INNER JOIN `boards` ON `board` = `boards`.`id` ORDER BY `time` DESC") or error(db_error());
if($query->rowCount() <1)
$body = '(Empty.)';
else {
@ -124,6 +128,7 @@
$p_query->execute() or error(db_error($query));
}
$reports++;
openBoard($report['uri']);
if(!$post['thread']) {
@ -148,6 +153,12 @@
}
}
$query = query("SELECT COUNT(`id`) AS `count` FROM `reports`") or error(db_error());