Je moet ingelogd zijn om te stemmen.
<?php $topic_query_aantal = mysql_query("SELECT * FROM topic WHERE categorie='".$cat_titel."'") or die(mysql_error()); $topic_aantal_a = mysql_num_rows($topic_query_aantal); while($cat_row = mysql_fetch_assoc($cat_query)) { $cat_titel = $cat_row['titel']; $cat_beschrijving = $cat_row['beschrijving']; $cat_moderator = $cat_row['moderator']; ?>
<?php$topic_query_aantal = mysql_query("SELECT * FROM topic WHERE categorie='".$cat_titel."'") or die(mysql_error()); $topic_aantal_a = mysql_num_rows($topic_query_aantal); while($cat_row = mysql_fetch_assoc($cat_query)) { $cat_titel = $cat_row['titel']; $cat_beschrijving = $cat_row['beschrijving']; $cat_moderator = $cat_row['moderator'];?>
<?php $q = "SELECT count(id) FROM topic WHERE categorie='". $cat_titel ."'"); $topic_aantal_a = MySQL_result(MySQL_query($q),0); echo $topic_aantal_a; ?>
<?php$q = "SELECT count(id) FROM topic WHERE categorie='". $cat_titel ."'");$topic_aantal_a = MySQL_result(MySQL_query($q),0);echo $topic_aantal_a;?>