|
|
@ -17,11 +17,11 @@ $ibu = $record["ibu"];
|
|
|
|
$brewery_id = $record["brewery_id"];
|
|
|
|
$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");
|
|
|
|
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"];
|
|
|
|
require("view/mainContent/beerExtraInfo.php");
|
|
|
|
|
|
|
|
showStars($_GET["id"], $rating);
|
|
|
|
showStars($_GET["id"], $rating);
|
|
|
|
unfollowButton("list", $_GET["id"]);
|
|
|
|
unfollowButton("list", $_GET["id"]);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|