_voodoo
Erfahrenes Mitglied
PHP:
$qry_1 = mysql_query ("select count(topic_id) as `themen` from `topics` where `forum_id` = '".$row['forum_id']."'") or die (mysql_error ());
$qry_2 = mysql_query ("select count(post_id) as `beitraege` from `posts` where `forum_id` = '".$row['forum_id']."'") or die (mysql_error ());
Hab es schon so probiert, aber erfolglos:
PHP:
$get_qry = mysql_query ("select count(t.topic_id) as themen, count(p.post_id) as beitraege from topics t, posts p where t.forum_id = '".$row['forum_id']."' or p.forum_id = '".$row['forum_id']."'") or die (mysql_error ());
Bin dankbar für Hilfe.