<article> <div class="top"> <a href="index.php"><h2>Stripcollectie F.C. De Kampioenen:</h2></a> <div class="topright"> *zoekbalk* </div> </div> <br/><br/><br/> <div class="resultdiv"> <table class='table table-striped table-bordered table-hover table-responsive'> <!-- http://www.w3schools.com/bootstrap/bootstrap_tables.asp --> <?php $pathinfo = isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : $_SERVER['REDIRECT_URL']; $params = preg_split('|/|', $pathinfo, -1, PREG_SPLIT_NO_EMPTY); $db = new Database(); $result = $db->getComic($params[1]); if ($result) { foreach ($result as $comic) { echo "<img src='" . $comic->getImage() . "' alt='image-comic-" . $comic->seriesId . "' style='width:250px;width:250px;'/>"; echo "<h2>" . $comic->getNumber() . ". " . $comic->getName() . "</h2><br/>"; echo "<p>" . $comic->getDescription() . "</p>"; echo "<hr/>"; echo "<table>"; echo "<tr><td><strong>Hoeveelheid in bezit</strong></td><td>" . $comic->getOwned() . "</td><td><strong>Druk</strong></td><td>" . $comic->getEdition() . "</td></tr>"; echo "</table>"; } } else { echo "<div class='error'><p>Deze strip werd niet gevonden. Misschien wil je deze <a href='addcomic.php'>toevoegen</a> of terugkeren naar de <a href='index.php'> startpagina</a>?</p></div>"; } ?>