Listing in beer and brewery
parent
147a41aa0c
commit
c5b703308f
@ -0,0 +1,14 @@
|
||||
<div class="content">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Alcohol Volume:</td>
|
||||
<td>IBU:</td>
|
||||
<td>From brewery:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?= $alc ?></td>
|
||||
<td><?= $ibu ?></td>
|
||||
<td><a href="brewery.php?id=<?= $brewery_id ?>"><?= $brewery ?></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
@ -0,0 +1,10 @@
|
||||
<div class="content">
|
||||
<table>
|
||||
<tr>
|
||||
<td>From:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?= $region ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
function unfollowButton($pdo, $where, $item_id, $user_id){
|
||||
print_r($pdo);
|
||||
$conn = $pdo;
|
||||
try {
|
||||
$sql = "SELECT * FROM $from WHERE id = $where";
|
||||
$stmt = $conn->prepare($sql);
|
||||
$stmt->execute();
|
||||
$result = $stmt->setFetchMode(PDO::FETCH_ASSOC);
|
||||
$record = $stmt->fetch();
|
||||
} catch (PDOException $e) {
|
||||
echo "Error in $from: Not Found";
|
||||
}
|
||||
return $record;
|
||||
}
|
||||
|
||||
function followButton($pdo, $where, $item_id, $user_id){
|
||||
print_r($pdo);
|
||||
$conn = $pdo;
|
||||
try {
|
||||
$sql = "SELECT * FROM $from WHERE id = $where";
|
||||
$stmt = $conn->prepare($sql);
|
||||
$stmt->execute();
|
||||
$result = $stmt->setFetchMode(PDO::FETCH_ASSOC);
|
||||
$record = $stmt->fetch();
|
||||
} catch (PDOException $e) {
|
||||
echo "Error in $from: Not Found";
|
||||
}
|
||||
return $record;
|
||||
}
|
||||
|
||||
function showStars($pdo, $beer_id, $user_id){
|
||||
print_r($pdo);
|
||||
}
|
Loading…
Reference in New Issue