34 lines
792 B
Plaintext
34 lines
792 B
Plaintext
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Beispiel: Daten aus der Datenbank</title>
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<?php if(isset($data['error'])): ?>
|
|
<h1>Es gab ein Problem mit der Datenbankverbindung</h1>
|
|
<p>Fehlermeldung</p>
|
|
<pre> <?php echo \htmlentities($data['beschreibung']??'', ENT_QUOTES, 'UTF-8', false); ?></pre>
|
|
|
|
<?php else: ?>
|
|
|
|
<article>
|
|
<h1>Daten aus der Datenbank der Tabelle: Kategorien</h1>
|
|
|
|
<ul>
|
|
<?php $__empty_1 = true; foreach($data as $a): $__empty_1 = false; ?>
|
|
<?php if(!empty($a['name'])): ?>
|
|
<li><?php echo \htmlentities($a['name']??'', ENT_QUOTES, 'UTF-8', false); ?></li>
|
|
<?php endif; ?>
|
|
|
|
<?php endforeach; if ($__empty_1): ?>
|
|
<li>Es sind keine Gerichte vorhanden</li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</article>
|
|
<?php endif; ?>
|
|
|
|
</body>
|
|
</html> |