I am having a problem with a mysql and MATCH AGANIST.
I got this row in my database :
1:{Czy jesteśmy tutaj sami};2:{Margit Sanoemo}
I want to find this by following query :
SELECT * FROM data WHERE MATCH (params) AGAINST('*argi*' IN BOOLEAN MODE)
but I got an empty row.
However with this query :
SELECT * FROM dataWHERE MATCH (params) AGAINST('margi*' IN BOOLEAN MODE)
I get want I want.
Can you help me with double ** in params ? AGAINST('*argi*' IN BOOLEAN MODE)
Do not embed variables into double-quoted strings and you are set:
SELECT * FROM " . $table .
WHERE MATCH (message) AGAINST ('%" . $string . "%' IN BOOLEAN MODE)