Update 'beer.php'

Adding container for rating
master
flejk 3 years ago
parent ac9e5556c1
commit 93e36a779e

@ -18,6 +18,11 @@ $brewery_id = $record["brewery_id"];
$brewery = getRecord($pdo, "brewery", $brewery_id )["name"]; $brewery = getRecord($pdo, "brewery", $brewery_id )["name"];
require("view/mainContent/mainContent.php"); require("view/mainContent/mainContent.php");
require("view/mainContent/beerExtraInfo.php"); require("view/mainContent/beerExtraInfo.php");
echo " <div class=\"content\">
<div class=\"box\">
<article>";
if(isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true){ if(isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true){
if(isThisBound($pdo, "list", $_GET["id"], $_SESSION["id"])){ if(isThisBound($pdo, "list", $_GET["id"], $_SESSION["id"])){
$rating = getRating( $pdo, $_GET["id"], $_SESSION["id"])["rating"]; $rating = getRating( $pdo, $_GET["id"], $_SESSION["id"])["rating"];
@ -29,6 +34,9 @@ if(isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true){
} }
} }
echo " </article>
</div>
</div>";
$array = listTagsByBeer($pdo, $_GET["id"]); $array = listTagsByBeer($pdo, $_GET["id"]);

Loading…
Cancel
Save