search for multiple keywords with php and mysql (where X like)

后端 未结 4 2016
你的背包
你的背包 2020-12-09 13:11

I have a code that dynamically search for data in the database using ajax but I can search for only 1 keyword in a time. I would like to modify it so I can search for multi

4条回答
  •  清歌不尽
    2020-12-09 13:53

    Don't use mysql_* functions even for testing anymore. They are no easier than mysqli, just in case you think easy to test here then move.

    However, you could split your input on a , and try this

    ".$searche['name']."
    ".$searche['size']."
    ".$searche['category']."


    "; } ?>

提交回复
热议问题