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

echo $queryString;

parent d6786eac
Branches
No related tags found
No related merge requests found
...@@ -45,6 +45,7 @@ class Recette{ ...@@ -45,6 +45,7 @@ class Recette{
// Having Count pour les ingredients // Having Count pour les ingredients
if(!empty($ingredients)){ if(!empty($ingredients)){
$queryString .= " HAVING COUNT(m_recette.id)="+count($ingredients); $queryString .= " HAVING COUNT(m_recette.id)="+count($ingredients);
echo $queryString;
} }
// On la prépare // On la prépare
$query = Connexion::pdo()->prepare($queryString." ORDER BY nom"); $query = Connexion::pdo()->prepare($queryString." ORDER BY nom");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment