Zwei Felder gleichzeitig durchsuchen
Hey Leute!
Folgendes: Ich möchte für ein Suchformular zwei Felder in einer MySQL-Tabelle gleichzeitig abfragen.
Sprich das Script soll Tabelle.Feld1 und Tablle.Feld2 durchsuchen ober der Suchbegriff x darin enthalten ist. Ich hab nur ein Problem mit der Syntax! Wie gestalte ich den SQL-String???
SELECT * FROM Tabelle WHERE Feld1, Feld2 LIKE '%$Suche%'
funktioniert nicht!
Wie schreib ich das Richtig???
Danke
lg
Flow
__________________
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
|