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

m_recetteIngredient

parent 7281a495
Branches
No related tags found
No related merge requests found
......@@ -433,7 +433,7 @@ function getIngredients($recetteId=""){
$query->execute();
return $query->fetchAll(PDO::FETCH_ASSOC);
}else{
$query = Connexion::pdo()->prepare("SELECT * FROM m_ingredient WHERE id IN (SELECT ingredientId FROM m_ingredientRecette WHERE recetteId=:recetteId) ORDER BY nom");
$query = Connexion::pdo()->prepare("SELECT * FROM m_ingredient WHERE id IN (SELECT ingredientId FROM m_recetteIngredient WHERE recetteId=:recetteId) ORDER BY nom");
$query->bindParam(':recetteId', $recetteId);
$query->execute();
return $query->fetchAll(PDO::FETCH_ASSOC);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment