diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 254dc10..63698d7 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -53,22 +53,22 @@ - - + + - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -432,7 +432,7 @@ - + 1485945646492 @@ -466,7 +466,7 @@ - @@ -893,22 +893,22 @@ - - + + - - - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/showrecept.php b/showrecept.php index d977e5f..0c81584 100644 --- a/showrecept.php +++ b/showrecept.php @@ -55,13 +55,13 @@ if(isset($_GET['zoek'])){ } else { if (count($NBR) == 0) { - echo "NBR == 0"; + $conn = false; } else { if(count($NBI)>0) { - echo "NBI >0"; + $numItems = count($NBR); $i = 0; $vraag = 'select id, naam, rating, prijs, soort, omschrijving, foto, bereiding, Username, Tijdgeplaatst from tblrecepten WHERE ('; @@ -78,7 +78,7 @@ if(isset($_GET['zoek'])){ } } } - + } else { $vraag = 'select id, naam, rating, prijs, soort, omschrijving, foto, bereiding, Username, Tijdgeplaatst from tblrecepten';