From 1a0657dda75faa309d5d0abd5bb6aafb22549d66 Mon Sep 17 00:00:00 2001 From: dzhemaptula Date: Thu, 23 Feb 2017 19:15:06 +0100 Subject: [PATCH] ..... --- .idea/workspace.xml | 64 ++++++++++++++++++++++----------------------- showrecept.php | 6 ++--- 2 files changed, 35 insertions(+), 35 deletions(-) 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';