prepare("SELECT * FROM reports WHERE sender_id = ? ORDER BY sent_at DESC"); $stmt->execute([$_SESSION["user_id"]]); $reports = $stmt->fetchAll(PDO::FETCH_ASSOC); ?> Report list - <?php echo INSTANCE_NAME ?>
'; echo ''; echo ''; echo ''; echo ''; } ?>
Contents Status
' . substr($report["contents"], 0, 20) . "..."; echo ' (' . format_timestamp(time() - strtotime($report["sent_at"])) . ' ago)'; echo ''; echo $report["resolved_by"] == null ? "Unresolved" : "Resolved"; echo ''; echo '[ View ]'; echo '