Created
June 27, 2018 11:17
-
-
Save BartvanS/59e1f520f617b4cc92c7d2b64fdad110 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="forumPost"> | |
<?php | |
$db = new Database(); | |
$forumId = $_GET['forumId']; | |
$result = $db->query('SELECT `forumposts`.*, forumcategories.* FROM `forumposts` LEFT JOIN forumcategories USING (categoryId) WHERE forumId = "'.$forumId.'"'); | |
$db->execute(); | |
$forumArr = $db->resultset(); | |
//foreach($forumArr as $key => $val ) { | |
// echo $val['forumId'] . ' + ' . $val['forumNaam'] . ' + ' . $val['subscriptionCount'] . ' + ' . $val['subject'] . ' + ' . $val['content']; | |
//} | |
$val = $forumArr; | |
var_dump($val); | |
?> | |
<table> | |
<tr> | |
<td></td> | |
<td><?php echo $val['forumNaam'] ?></td> | |
</tr> | |
<tr> | |
<td> </td> | |
<td><?php echo 'Subscribers (' . $val['subscriptionCount'] . ')'?></td> | |
</tr> | |
<tr> | |
<td></td> | |
<td><?php echo $val['content'] ?></td> | |
</tr> | |
</table> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment