Mehrere Bedingungen

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Mehrere Bedingungen

    Man kann mit folgendem Befehl angeben, aus welchen Spalten er die Daten holen soll

    $result = mysql_query("SELECT daten1 FROM db WHERE daten2 = 'xyz'");


    wie kann man machen, dass nach WHERE zwei Bedingungen stehen können? Mit AND?

  • #2
    wie kann man machen, dass nach WHERE zwei Bedingungen stehen können? Mit AND?
    Schon probiert ???

    Gruss

    tobi
    Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

    [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
    Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

    Kommentar


    • #3
      Nein!! Ich wollte zuerst hier fragen, beovr ich alles vorbereite und dann gehts nicht. Dazu ist dieses Forum doch da, oder?

      Kommentar


      • #4
        Für Fragen ist ein Forum immer da.
        Aber oft geht es schneller etwas auszuprobieren, als hier auf eine Antwort zu warten.
        Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

        [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
        Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

        Kommentar


        • #5
          Komm jetzt sag schon. *fleh*

          Kommentar


          • #6
            Die Antwort gibt es wenn du es probiert hast
            Nur für den Fall: ja

            Gruss

            tobi
            Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

            [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
            Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

            Kommentar


            • #7
              Okay, ich habs getest.

              Es geht mit "and".

              Danke

              Kommentar

              Lädt...
              X