I have not submitted the query conditions yet. every time I open this page, all the data in the user table is displayed. if fuzzy query is not required, this will not happen. why? {Code ...} I have not submitted the query conditions yet. every time I open this page, all the data in the user table is displayed. if fuzzy query is not required, this will not happen. why?
$ SQL = "SELECT * FROM user WHERE name like '% {$ name} % '";
Reply content:
I have not submitted the query conditions yet. every time I open this page, all the data in the user table is displayed. if fuzzy query is not required, this will not happen. why?
$ SQL = "SELECT * FROM user WHERE name like '% {$ name} % '";
If no query conditions are submitted
So SQL is like this
SELECT * FROM user WHERE name like '% ';
This request will certainly display all data
No, it's like this.