Guys, the following query doesn't return values. Could you help me by checking if there is any problem with the syntax?


$ value = ""

"SELECT * FROM cli_for WHERE cnpj as & # 39;% $ value% & # 39; or name as & # 39;% $ value% & # 39; or elegant as & # 39;% $ value% & # 39; "

For example, assign "gui" to the value variable, var_dump returned the following:

$ value = "gui";

"SELECT * FROM cli_for WHERE cnpj as & # 39;% gui% & # 39; or name as & # 39;% gui% & # 39; or fantasy as & # 39;% gui% & # 39;"