Moin!
$result = mysql_query("SELECT top100.*,(SELECT count(*) from top100 as top100 WHERE top100.interpret= top100.interpret AND top100.titel= top100.titel) AS ANZAHL FROM top100, woche WHERE top100.jahr='$jahr' AND woche.jahr='$jahr' and top100.KW='$kw' AND woche.kw='$kw' ORDER BY 'Platz' LIMIT $pos");
Das ist Schrott.
Notiere Deine Abfrage vernünftig und schreibe diese in eine Variable:
$sql = "
SELECT top100.*,(
SELECT count(*) from top100 as top100
WHERE top100.interpret= top100.interpret
AND top100.titel= top100.titel) AS ANZAHL
FROM top100, woche WHERE top100.jahr='$jahr'
AND woche.jahr='$jahr' and top100.KW='$kw'
AND woche.kw='$kw' ORDER BY 'Platz'
LIMIT $pos";
Da stimmt doch was nicht...
$result = mysql_query($sql) or die ("<hr><pre>$sql<pre><hr>".mysql_error()."<hr>");
Lass Dir den Fehler und Deine Abfrage auch ausgeben.
MFFG (Mit freundlich- friedfertigem Grinsen)
fastix®
Als Freiberufler bin ich immer auf der Suche nach Aufträgen: Schulungen, Seminare, Training, Development