I made a search for my website. However whenever I search for anything all of the items in my databases table are displayed instead of just the ones that are like the search term.
Here is my code:
$data = mysql_query(“SELECT * FROM food WHERE $_POST[field] LIKE ‘%$find%’”);
Any help would be greatly appreciated