Hi Stefan
"SELECT * FROM issue WHERE DateEnter = '$DateEnter' and StateID = '$status' and CommiteeID = '$commitee' and OriginatorID = '$mitarbeiter'";
Das ist meine Abfrage, die funktioniert auch. Allerdings habe ich noch eine Spalte "Assign" in meiner tabelle. Nun sollen alle angezeigt werden wo
DateEnter = '$DateEnter' und
StateID = '$status' und
CommiteeID = '$commitee' und
OriginatorID = '$mitarbeiter'
oder
DateEnter = '$DateEnter' und
StateID = '$status' und
CommiteeID = '$commitee' und
Assign = '$mitarbeiter' ist.
wie mach ich das.
Ganz genau so wie du schreibst:
Select * <- Pfui, gib die Felder an
from issue
where DateEnter = '$DateEnter'
and StateID = '$status'
and CommiteeID = '$commitee'
and (OriginatorID = '$mitarbeiter'
or Assign = '$mitarbeiter')
Gruss Daniela