";
if($_GET["type"]=="tag"){
$array=listBeersByTag($pdo, $tag);
}
if($_GET["type"]=="beer"){
$name=$_GET["keyword"];
$array=listBeersByName($pdo, $name);
foreach($arrayOfBeers as $row):
echo "
";
endforeach;
}
if($_GET["type"]=="brewery"){
$name=$_GET["keyword"];
$array=listBreweryByName($pdo, $name);
}
if($_GET["type"]=="article"){
$name=$_GET["keyword"];
$array=listArticleByName($pdo, $name);
foreach($array as $row) :
echo "";
endforeach;
}
if($_GET["type"]=="all"){
$name=$_GET["keyword"];
$array=listArticleByName($pdo, $name);
foreach($array as $row) :
echo "";
endforeach;
$array=listBreweryByName($pdo, $name);
$array=listBeersByName($pdo, $name);
$array=listBeersByTag($pdo, $tag);
}
echo "";
include("view/footer.php");*/