Skip to content
Snippets Groups Projects
Commit cb86c82d authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

"%".$name."%"

parent 57e74989
Branches
No related tags found
No related merge requests found
...@@ -250,7 +250,8 @@ function getRecettes($search=""){ ...@@ -250,7 +250,8 @@ function getRecettes($search=""){
$query->bindParam(':categoryId', $categoryId); $query->bindParam(':categoryId', $categoryId);
} }
if(!empty($name)){ if(!empty($name)){
$query->bindParam(':name', "%".$name."%"); $name = "%".$name."%";
$query->bindParam(':name', $name);
} }
if(!empty($ingredientId)){ if(!empty($ingredientId)){
$query->bindParam(':ingredientId', $ingredientId); $query->bindParam(':ingredientId', $ingredientId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment