From 3aa19d7755d3198bc348b50079357169aee67d70 Mon Sep 17 00:00:00 2001 From: Simone Carnio Date: Sun, 27 Aug 2023 11:21:55 +0200 Subject: [PATCH] added search in odor field --- core/list_ingredients_simple.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/list_ingredients_simple.php b/core/list_ingredients_simple.php index c36d1104..44a48e28 100644 --- a/core/list_ingredients_simple.php +++ b/core/list_ingredients_simple.php @@ -21,7 +21,7 @@ }else{ $t = "ingredients"; - $filter = "WHERE name LIKE '%$s%' OR cas LIKE '%$s%' OR INCI LIKE '%$s%'"; + $filter = "WHERE name LIKE '%$s%' OR cas LIKE '%$s%' OR INCI LIKE '%$s%' OR odor LIKE '%$s%'"; } $q = mysqli_query($conn, "SELECT ingredients.id,name,INCI,cas,type,odor,physical_state,profile FROM $t $filter ORDER BY name ASC");