ich habe folgende SQL-Abfrage:
Code: Alles auswählen
SELECT * FROM Tabelle WHERE spalte1 = '1' AND cat1 = '$auswahl' OR cat2 = '$auswahl' OR cat3 = '$auswahl' order by titel
Code: Alles auswählen
spalte1 = '1'
Weiß jemand wo da der Fehler liegt?
Edith sagt:
Mach mal Urlaub, mach mal Pause...
Code: Alles auswählen
SELECT * FROM Tabelle WHERE spalte1 = '1' AND (cat1 = '$auswahl' OR cat2 = '$auswahl' OR cat3 = '$auswahl') order by titel
Gruß
thefly