If ($betriebssystem <> "")
Then {myrestriction = myrestriction & " and betriebssystem = '" & $betriebssystem & "'"}
End If
If ($typ <> "")
Then {myrestriction = myrestriction & " and typ = '" & $typ & "'"}
End If
If ($hersteller <> "")
Then {myrestriction = myrestriction & " and hersteller = '" & $hersteller & "'"}
End If
$ergebnis=mysql_query ("select * from hersteller where 1=1" & myrestriction);
ESCAPING REINMACHEN!!! mysql_real_escape_string() existiert nicht zum Spaß.