Sorry for the bad title, couldn't come up with anything better.
I have a PHP query to my database like:
$results = $db->query("SELECT shopname, image, price, location FROM shops WHERE shopname LIKE '%" . $_GET["shopname"] . "%'");
and it works fine, but I'd like it to have more like:
$results = $db->query("SELECT shopname, image, price, location FROM shops WHERE shopname LIKE '%" . $_GET["shopname"] . "%' OR location LIKE '%" . $_GET["location"] . "%'");
but that "OR" part somehow keeps staying inside some quotes and thus giving me:
Notice: Undefined index: location in C:\xampp\htdocs\harj\app.php on line 13.
I'm sure this is just some oversight by me but after spending a long time here wondering whats wrong any help would be appreciated.