foreach ($dbPostList as $posts) {
echo '
<table class="post">
<tr><td class="userdetails">
<a href="/viewprofile.php?id=' . $posts["memberId"] .'" class="username">' . $posts["memberUsername"] . '</a><br />
<span class="postCount">Posts: ' . $posts["memberPostCount"] . '</a>
>' . ($_SESSION["rank"] >= 2) ? '<a href="/__sys/admin.removePost.php?id=' . $posts["postId"] . '">[Remove Post]</a><br />' : "<br />";
var_dump($posts) . '
</td>
<td class="postdetails">
' . base64_decode($posts["postContent"]) . '
</td></tr>
</table>
';
}
Shows correct [Remove Post] link and var_dump($posts)
.
But everything else is gone. If I remove line:
>' . ($_SESSION["rank"] >= 2) ? '<a href="/__sys/admin.removePost.php?id=' . $posts["postId"] . '">[Remove Post]</a><br />' : "<br />";
and fix symantic errors, the table.post shows normally. But with this line there, post just disappears.