Is it possible to bindParam WHERE name like %:name%

前端 未结 1 1991
长发绾君心
长发绾君心 2021-01-06 19:36

I\'m testing a small search feature:

But I\'ve come across an error that I cannot seem to solve. You can see the PDO query here:

$search = \"test1         


        
相关标签:
1条回答
  • 2021-01-06 20:15

    Use

    LIKE CONCAT('%', :name, '%')
    
    0 讨论(0)
提交回复
热议问题