|
|
@ -1,6 +1,6 @@
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
function listLatestBeers($pdo, $where){
|
|
|
|
/*function listLatestBeers($pdo, $where){
|
|
|
|
$conn = $pdo;
|
|
|
|
$conn = $pdo;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
$sql = "SELECT * FROM beer ORDER BY time DESC LIMIT $where";
|
|
|
|
$sql = "SELECT * FROM beer ORDER BY time DESC LIMIT $where";
|
|
|
@ -26,7 +26,7 @@ function listLatestBreweries($pdo, $where){
|
|
|
|
echo "Error in Breweries: " . $e->getMessage();
|
|
|
|
echo "Error in Breweries: " . $e->getMessage();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $arrayOfBreweries;
|
|
|
|
return $arrayOfBreweries;
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
|
|
function listLatestUsers($pdo, $where){
|
|
|
|
function listLatestUsers($pdo, $where){
|
|
|
|
$conn = $pdo;
|
|
|
|
$conn = $pdo;
|
|
|
|