Test pages * 1/?

This commit is contained in:
Vincent
2024-06-04 23:26:09 +02:00
parent a59966d698
commit f0260ba791
6 changed files with 54 additions and 9 deletions

View File

@@ -5,8 +5,12 @@
</head>
<body>
<h1><?= $artist->artistName ?></h1>
<p><strong>Genre:</strong> <?= $artist->genreName ?></p>
<img src="data:image/jpeg;base64,<?= base64_encode($artist->jpeg) ?>" alt="<?= $artist->artistName ?> Photo">
<?php if (!empty($artist->genreName)): ?>
<p><strong>Genre:</strong> <?= $artist->genreName ?></p>
<?php endif; ?>
<?php if (!empty($artist->jpeg)): ?>
<img src="data:image/jpeg;base64,<?= base64_encode($artist->jpeg) ?>" alt="<?= $artist->artistName ?> Photo">
<?php endif; ?>
<h2>Albums</h2>
<ul>