Hallo,
Ich habe ein Problem mit einer Abfrage an MySQL hier erstmal meine Syntax:
Code:
SELECT * FROM ".$TablePrafix."blocks
WHERE pid='".$id."' AND align='".$Align."' AND invisibly='".$invisibly."'
OR visibly=1 ORDER BY sort ASC
Diese abfrage funktioniert so nicht. So abgefragt soll werden Tabelle Pid ist Gleich $ID und Tabelle Align ist gleich $Align und Tabelle Invisibly gleich $invisibly oder visibly ist gleich True.
wenn Ich die Syntax so wie oben ausführe bekomm ich auf mein Lokalen Server ein Internal Server Error.
Ich habe schon bei mysql.de nach geschaut aber ich versteh das mit OR nicht wirklich, darf OR nicht in Verbindung mit AND gebracht werden?
Ich bedanke mich schonmal für die Hilfe ist sicher nur ein denkfehler bei mir.
MfG Funjoy