diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-01-24 13:33:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-24 13:33:31 -0700 |
commit | 3b448bc3b3da97e7945dfc0bd05f91aa83d6e862 (patch) | |
tree | c0572f1a5da9a95210b18fc5b29f407cd2a4f9c4 /thread.php | |
parent | b08ca01d49b3683b62d2d9f2f6fefc1a73da71a0 (diff) | |
parent | d10e573e3e1b4806f9da22aae584a6d75efeb5f2 (diff) |
Merge pull request #5 from cflip/change_password
Change password 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 +?> |