From cf270f3726a8037ebef80888eb510172688e13a7 Mon Sep 17 00:00:00 2001
From: Aqua-sama Bugs
Create
Title | Description | Owner | $row[title] | " . truncate($row['description']) . " | $row[submitter] | \n"; +foreach ($bugs as $row) { + echo "
---|---|---|
$row[title] | " . truncate($row['description']) . " | $row[submitter] |
No bugs found.
\n"; } ?> @@ -43,16 +45,16 @@ if(session_set()) { } # reports query -$reports_q = 'SELECT reports.id AS id, title, description, users.username AS user FROM reports JOIN users ON reports.author=users.id WHERE bug IS NULL ORDER BY id'; +$reports = $conn->query("SELECT reports.id AS id, title, description, users.username AS user + FROM reports JOIN users ON reports.author=users.id WHERE bug IS NULL ORDER BY id"); -$reports_r = $conn->query($reports_q); -if($reports_r->rowCount() > 0) { +if($reports->rowCount() > 0) { ?>Title | Description | Submitted by | $row[title] | " . truncate($row['description']) . " | $row[user] | \n"; } ?> -- cgit v1.2.1
---|