08.04.2017, 19:17
Learn your quotes. Backticks (`) are not the same as quotes ('). Backticks are used to denote the enclosed value as a table or column name. Normal quotes are used to denote the enclosed value as a literal. Meaning this:
is looking for rows where the column name is equal to the column whatever-%e-contains.
Only use the normal quotes for strings and just get rid of all the backticks altogether.
PHP код:
WHERE `Name` = `%e`
Only use the normal quotes for strings and just get rid of all the backticks altogether.