100 points: the thinkphp fuzzy query problem. The fuzzy query condition is array 100 points. The values are urgent. the thinkphp fuzzy query problem. The fuzzy query condition is array.
$ Map2 ['ornamentations. tags'] = array ('like', array ("% $ a1 %", "% $ a2 %", "% $ a3 %"), 'or ');
The query condition should be the "and" relationship, but an error is reported when the "and" clause is written, and no results can be found.
Reply to discussion (solution)
Use $ map2 ['_ string'].
Use $ map2 ['_ string'].
What does this mean? Not understand
You need to enclose the condition % with single quotation marks. Otherwise, an error will be returned when it is assembled into an SQL statement.
Use $ map2 ['_ string'].
What does this mean? Not understand
Search for _ string in the thinkphp manual to find out what is going on. This means you can query the SQL statement you want.
An error is returned. output your SQL statement to check the SQL concatenation error.
$ Map ['_ string'] is used to assign the original where condition statement to this variable...