where is the problem? forum on wp page
-
<table id=”latest”>
<tr>
<th>Forum</th>
<th>Discussioni</th>
<th>Messaggi</th>
</tr>
<?php
global $wpdb;
$query=”SELECT * FROM bb_forums WHERE topics!=0 ORDER BY forum_order ASC LIMIT 10″;
$results=$wpdb->get_results($query);
foreach ($results as $result) {
echo “<tr><td>forum_id.”‘>”.$result->forum_name.”</td>”;
echo “<td class=’num’>”.$result->forum_topics.”</td>”;
echo “<td class=’num’>”.$result->forum_posts.”</td></tr>”;
}
?>
</table>
why this code don’t display the number of discussions and posts?
kikko088
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.