How to make a SELECT in PHP/MySQL case insensitive?

前端 未结 7 936
面向向阳花
面向向阳花 2020-12-06 11:55

Her\'s my probleme, i guess its really basic.

I\'m trying to lookup in the database if a line does exist. heres my code :

$req=\"SELECT * FROM INSTIT         


        
7条回答
  •  天涯浪人
    2020-12-06 12:38

    Try using LIKE instead of =:

    $req="SELECT * FROM INSTITUTS WHERE `inst_name` LIKE '$fc_inst'";
    

提交回复
热议问题