diff --git a/controller/insertArticle.php b/controller/insertArticle.php index 98d6293..267bf1a 100644 --- a/controller/insertArticle.php +++ b/controller/insertArticle.php @@ -17,13 +17,12 @@ if(!is_null($title)){ $conn = $pdo; try { $sql = "INSERT INTO article ( title, body ) values ( '$title', '$body' );"; - echo $sql; $conn->exec($sql); } catch (PDOException $e) { echo "Error in $from: Not Found"; } } -//header("location: ../insertWhat.php"); +header("location: ../insertWhat.php"); ?> diff --git a/controller/insertBeer.php b/controller/insertBeer.php index deac72e..26bcea6 100644 --- a/controller/insertBeer.php +++ b/controller/insertBeer.php @@ -30,7 +30,7 @@ if(!is_null($name)){ echo "Error in $from: Not Found"; } } -// header("location: ../insertWhat.php"); +header("location: ../insertWhat.php"); ?> diff --git a/controller/insertBrewery.php b/controller/insertBrewery.php index 51fda9b..f71f1c4 100644 --- a/controller/insertBrewery.php +++ b/controller/insertBrewery.php @@ -24,7 +24,7 @@ if(!is_null($name)){ echo "Error!"; } } -// header("location: ../insertWhat.php"); +header("location: ../insertWhat.php"); ?> diff --git a/search.php b/search.php index 91f3324..3e0b0e0 100644 --- a/search.php +++ b/search.php @@ -2,4 +2,4 @@ session_start(); print_r($_GET); -//header("location: index.php"); \ No newline at end of file +header("location: index.php"); \ No newline at end of file diff --git a/view/sidebar.php b/view/sidebar.php index 520b402..ed99251 100755 --- a/view/sidebar.php +++ b/view/sidebar.php @@ -22,7 +22,7 @@ $title = "LATEST Breweries"; $where = "5"; $what = "brewery"; -$array = listLatestBreweries($pdo, $where); +$array = listBeersByBreweryNAN($pdo); require("sidebar/sidebarLister.php");