prepare($sql); $stmt->execute(); } catch (PDOException $e) { echo "Error in list: Not Found"; } header("location: ../beer.php?id=$what");