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

time for backend now :D

parent 4dfd39b3
No related branches found
No related tags found
No related merge requests found
...@@ -84,6 +84,15 @@ ...@@ -84,6 +84,15 @@
if(isset($_GET["name"]) AND !empty($_GET["name"])){ if(isset($_GET["name"]) AND !empty($_GET["name"])){
$search["name"]=($_GET["name"]); $search["name"]=($_GET["name"]);
} }
if(isset($_GET["difficulte"]) AND !empty($_GET["difficulte"])){
$search["difficulte"]=($_GET["difficulte"]);
}
if(isset($_GET["tempsPreparation"]) AND !empty($_GET["tempsPreparation"])){
$search["tempsPreparation"]=($_GET["tempsPreparation"]);
}
if(isset($_GET["ingredients"]) AND !empty($_GET["ingredients"])){
$search["ingredients"]=($_GET["ingredients"]);
}
$recettes = Recette::getRecettes($search); $recettes = Recette::getRecettes($search);
foreach($recettes as $recette){ foreach($recettes as $recette){
$array["userId"] = $recette["auteurId"]; $array["userId"] = $recette["auteurId"];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment