I have a mysql database that I search with php. I'm using the code below to get my search terms. It can handle apostrophes but not the '&' symbol. Is there another php code that will strip this symbol?
$variable = @$_GET['b'];
$variable = addslashes($variable);