Agi
TEAM - PHP Freak

Dabei seit: 22.11.04
Beiträge: 2.628
Fähigkeiten: WBB3 Profi Forenversion: 3.1
 |
|
Vielleicht geht es so?
| php: |
1:
2:
3:
4:
5:
6:
7:
|
$result = $db->query("SELECT threadid FROM bb".$n."_threads WHERE boardid = '27'");
while ($row = $db->fetch_array($result)) {
$postid = $db->query_first("SELECT postid FROM bb".$n."_posts WHERE threadid = '$row[threadid]'");
$attach = $db->query("SELECT COUNT(attachmentid) AS attachments FROM bb".$n."_attachments WHERE postid = '$postid[postid]'");
$attachments = $attach['attachments'];
} |
|
$attachments sollte die Anzahl der Attachments in dem bestimmten Forum ausgeben.
Aber ist alles sehr datenbanklastig, aber auf die schnelle ist mir keine bessere Lösung eingefallen.
__________________
|
|
11.02.09 19:15 |
Finden
Als Freund hinzufügen
|
|
|