From 6500ec0543a316f9fa5f16a5c47e7103ec9bbe9e Mon Sep 17 00:00:00 2001 From: Cflip <36554078+cflip@users.noreply.github.com> Date: Sun, 24 Jan 2021 13:46:28 -0700 Subject: Add more links to user page --- category.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'category.php') diff --git a/category.php b/category.php index f5cf9cb..b26856a 100644 --- a/category.php +++ b/category.php @@ -27,7 +27,7 @@ mysqli_free_result($result); echo ''; -$sql = "SELECT thread_id, thread_subject, thread_date, user_name FROM threads JOIN users ON thread_author = user_id WHERE thread_cat = " . mysqli_real_escape_string($dbc, $_GET['id']) . " ORDER BY thread_id DESC"; +$sql = "SELECT thread_id, thread_subject, thread_date, user_id, user_name FROM threads JOIN users ON thread_author = user_id WHERE thread_cat = " . mysqli_real_escape_string($dbc, $_GET['id']) . " ORDER BY thread_id DESC"; $result = mysqli_query($dbc, $sql); if (!$result) { @@ -52,7 +52,9 @@ while ($row = mysqli_fetch_assoc($result)) { echo ''; echo '

' . $row['thread_subject'] . '

'; - echo 'by ' . $row['user_name'] . ' on ' . date('M d, Y', strtotime($row['thread_date'])) . 'by ' . $thread['user_name'] . '
' . date('m/d/Y g:ia', strtotime($thread['post_date'])) . ''; + echo 'by ' . $row['user_name'] . ' on ' . date('M d, Y', strtotime($row['thread_date'])) . ''; + echo 'by ' . $thread['user_name'] . '
'; + echo '' . date('m/d/Y g:ia', strtotime($thread['post_date'])) . ''; } mysqli_stmt_close($stmt); -- cgit v1.2.3