The problem is as follows: a string is generated from the selected parameters
$query = SELECT * FROM catalog_test WHERE TRUE ".$where;
$query is passed to
mysqli->query($query); and nothing else happens, no error messages. I deduced
$query on the screen for visual check, it turns out for example:
SELECT * FROM catalog_test WHERE TRUE AND picture = '+' AND ( name LIKE('%Ariocarpus %') OR name LIKE('%Astrophytum %') OR name LIKE('%Aylostera %') OR FALSE)
And the most interesting is that this query works!
What is the problem? If we assign $ query to this query, then it succeeds, but does not want with parameters. thank