MATCH AGAINST Probleme

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MATCH AGAINST Probleme

    Ich habe folgendes Suchscript:
    PHP Code:
    $sql 'SELECT * FROM telefonliste WHERE MATCH (nachname, vorname, standort) AGAINST ("'.$_POST['keyword'].'" IN BOOLEAN MODE)'
    Es geht um ein kleines Telefonbuch.
    Wenn ich jetzt "P" eintippe, sollte doch alle Namen und Standorte, die mit "P" anfangen, erscheinen...
    Das tun sie aber nicht.

    Danke schon im vorraus für Hilfe.

    PS: Ich benutze PHP 5.2.3 und MySQL 5.0.45-community-nt

  • #2
    nein, "mit p beginnend" fragt man mit
    Code:
    ... WHERE ... LIKE 'P%'
    du suchst nach allen einträgen, die "P" beinhalten, fällt aber m.w. unter stop words.

    rtfm.

    Comment


    • #3
      also ist '%' ein Platzhalter?

      Comment


      • #4
        http://dev.mysql.com/doc/refman/5.0/...#operator_like

        Comment

        Working...
        X