I am searching on MySQL database using PHP and LIKE
method, everything works great except when I type some characters like #
, _
, &
it returns all rows even that there is not any row that has any of this character on it.
Other characters like /
, "
, '
works great and shows just the rows that has those characters.
The follow code is the code I use to get those results.
mysql_query("SELECT * FROM articles WHERE title LIKE '%$value%'")