diff options
author | h5p9sl <21267024+h5p9sl@users.noreply.github.com> | 2021-01-24 10:52:26 -0700 |
---|---|---|
committer | h5p9sl <21267024+h5p9sl@users.noreply.github.com> | 2021-01-24 10:52:26 -0700 |
commit | b134b8d8aaa193c6097f034e08fe8d54e51eabab (patch) | |
tree | 13b4bd3cc146c4ffa0dd3edf36acbc19e6e9cb84 /thread.php | |
parent | 5032ee6dde5b33846570d9ea7af6b508755c708b (diff) |
Add basic user page
Diffstat (limited to 'thread.php')
-rw-r--r-- | thread.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -15,7 +15,7 @@ if (mysqli_num_rows($result) == 0) { } else { while ($row = mysqli_fetch_assoc($result)) { echo '<section><h1>' . $row['thread_subject'] . '</h1>'; - echo 'Created by <b>' . $row['user_name'] . '</b> on ' . date('M d, Y', strtotime($row['thread_date'])) . '</section>'; + echo 'Created by <a href="user.php?id='. $row['user_id'] .'">' . $row['user_name'] . '</a> on ' . date('M d, Y', strtotime($row['thread_date'])) . '</section>'; $thread_id = $row['thread_id']; } } @@ -36,7 +36,7 @@ if (mysqli_num_rows($result) == 0) { } else { echo '<table>'; while ($row = mysqli_fetch_assoc($result)) { - echo '<tr class="post"><td class="right">Posted by <b>' . $row['user_name'] . '</b><br><small>' . date('m/d/Y g:ia', strtotime($row['post_date'])) . '</small></td>'; + echo '<tr class="post"><td class="right">Posted by <a href="user.php?id='. $row['user_id'] .'">' . $row['user_name'] . '</a><br><small>' . date('m/d/Y g:ia', strtotime($row['post_date'])) . '</small></td>'; echo '<td class="left">' . $row['post_content'] . '</td></tr>'; } echo '</table>'; @@ -64,4 +64,4 @@ if (isset($_SESSION['signed_in'])) { } include_once 'footer.php'; -?>
\ No newline at end of file +?> |