Okay wie im ersten Thread stand da was von
mysql_escape_string
nun hab ich mal folgendes gemacht
$kw = mysql_escape_string($kw);
Ergebnis :
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='' AND woche.jahr='' and top100.KW='' AND woche.kw='' ORDER BY 'Platz' LIMIT ''
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in ausgabe.php on line 138
Leute ich geb auf, ich hab das Verständniss nicht mehr dafür.
Ich hab das mal intensiv vor 4 - 5 Jahren gemacht, nur ist kaum noch was hängen geblieben.
$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'";
echo $sql;
Trotzdem Danke an alle die versucht haben mir zu helfen, muss ich es halt so lassen wie es ist, denn mich intensiv damit zu beschäftigen fehlt mir ehrlich gesagt die Zeit.
Grueße Thomas