+
Bücher
+ 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'];
+
+ if ($counter != 0) {
+ echo "
";
+ }
+ // TODO: OnClick auslagern.
+ echo "
+
+
+
+
+
$bookTitle
+
+
Verfasser: $bookAuthor
+
+ Erscheinungsjahr: $bookPublishingYear
+
+ Verlag: $bookPublisher
+
+ Kategorie: $bookCategory
+
+
+
+ $bookAvailability
+
+
+
+
+
+
";
+ $counter++;
+ }
+ } else {
+ echo "Keine Ergebnisse.";
+ }
+
+ if (!$result) {
+ die("Ungültige SQL-Abfrage: " . mysqli_connect_error());
+ }
+
+ mysqli_close($connection);
+
+ ?>
+
+
+
+
+
+
+
+
+
+
+