私はこのようなテーブルを持っています
ID、タイトル 1、ハローワールド 2、ワールドハロー
そして、次の php 式に一致するすべての ID を検索したいと思います。
$searchstring = "hello world is yours"
if (strstr($searchstring,mysql(title)){echo found}
mysqlでは、これをよく使用しました:
select id from table where title LIKE '%....%'
しかし、私はそれが反対側に必要です:
select id from table where "hello word is yours" LIKE %title%
結果は id 1 "hello word" でなければなりません
誰でも正しい構文を教えてもらえますか?