Heim  >  Fragen und Antworten  >  Hauptteil

Was ist falsch an der Implementierung der PHP-Suchfunktion?

111.JPG

222.JPG

333.JPG

555.JPG

Dies ist eine Datenbanktabelle

444.JPG

promisingpromising1226 Tage vor1398

Antworte allen(4)Ich werde antworten

  • 千战

    千战2021-07-02 11:13:32

    或者你在你的Conn.php里的第四行这么写:

    $db->query("SET NAMES 'utf8'");

    Antwort
    0
  • 千战

    千战2021-07-02 11:06:33

    初始化一个PDO对象,设置utf-8编码。

    <?php

    $dbh = new PDO('mysql:host=localhost;dbname=数据库名;charset=utf8', "root", "YOUXIA");

    ?>

    Antwort
    1
  • 猪老湿

    猪老湿2021-06-10 21:57:59

    检查编码, 还有路径不要有中文

    Antwort
    0
  • promising

    我看不出来啊,你指点指点

    promising · 2021-06-10 22:04:47
  • StornierenAntwort