You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
950 B
PHP
34 lines
950 B
PHP
<?php
|
|
session_start();
|
|
require_once("model/db.php");
|
|
require_once("controller/getRecord.php");
|
|
require_once("view/mainContent/userButtons.php");
|
|
|
|
require("view/header.php");
|
|
require("view/sidebar.php");
|
|
|
|
|
|
$record = getRecord($pdo, "beer", $_GET["id"] );
|
|
$title = $record["name"];
|
|
$description = $record["description"];
|
|
$date = $record["time"];
|
|
$alc = $record["alc"];
|
|
$ibu = $record["ibu"];
|
|
$brewery_id = $record["brewery_id"];
|
|
|
|
require("view/mainContent/mainContent.php");
|
|
|
|
|
|
$brewery = getRecord($pdo, "brewery", $brewery_id )["name"];
|
|
|
|
require("view/mainContent/beerExtraInfo.php");
|
|
|
|
echo "Kappa";
|
|
if(isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true){
|
|
if(isThisBound($pdo, "list", $_GET["id"], $_SESSION["id"])){
|
|
unfollowButton($pdo, "list", $_GET["id"], $_SESSION["id"]);
|
|
} else followButton($pdo, "list", $_GET["id"], $_SESSION["id"]);
|
|
showStars($pdo, $_GET["id"], $_SESSION["id"]);
|
|
}
|
|
|
|
include("view/footer.php"); |