How to search the database with special character?
I use this code to as a button
<a href="search.php?search=A & W Restaurants&submit=submit">A & W Restaurants</a>
After that, I use this to search database
$query = mysql_real_escape_string($_GET['search']);
SELECT * FROM table WHERE 1st_column LIKE '%{$query}%'
But the search result show me is empty.
I think is "&" to stop my database query.
any idea on this?
Thanks for advance