0) {
while($row = mysqli_fetch_assoc($result)) {
$bookID = $row['BuchID'];
$bookCover = $row['Bild'];
$bookTitle = $row['Titel'];
$bookPublishingYear = $row['Erscheinungsjahr'];
$bookPublisher = $row['Verlag'];
$bookAuthor = $row['Autor'];
$bookCategory = $row['Kategorie'];
$bookAvailability = $row['Verfügbarkeit'];
$bookContent = $row['Inhalt'];
$bookISBN = $row['ISBN'];
$bookLanguage = $row['Sprache'];
$bookKeywords = $row['Stichwort'];
/* TODO: OnClick auslagern. */
echo
"
$bookTitle
Verfasser: $bookAuthor
Erscheinungsjahr:
$bookPublishingYear
Verlag:
$bookPublisher
Kategorie:
$bookCategory
Details
ISBN: $bookISBN
Sprache: $bookLanguage
Stichwörter:
$bookKeywords
";
}
} else {
echo "Keine Infos vorhanden.";
}
if (!$result) {
die("Ungültige SQL-Abfrage: " . mysqli_connect_error());
}
mysqli_close($connection);
?>