Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <section class="ICO">
- <div class="one-fourth-gridtable">
- <table class="grid table">
- <?php while($subject = mysqli_fetch_assoc($subject_set)) {
- $imagenavn = $subject['navn'];
- $sql = "SELECT * FROM product_images WHERE image_name = '$imagenavn'";
- $sth = $db->query($sql);
- $result=mysqli_fetch_array($sth);
- ?>
- <td> <div style="border: 1px solid black; border-radius:2000px;">
- <?php echo '<img src="data:image/jpeg;base64,'.base64_encode( $result['image'] ).'"/>'; ?>
- </div><a class="action" href="<?php echo url_for('../show.php?id=' . h(u($subject['id']))); ?>"><?php echo h($subject['navn']); ?></a>
- </td>
- <?php } ?>
- </table>
- </div>
- </section>
- table {
- background-color:#6991AC;
- width: 100%;
- text-align:center;
- display:inline-table;
- margin-top:-5%;
- }
- .ICO {
- max-width:1100px;
- margin: 0 auto; }
- .one-fourth-gridtable {
- width:100%;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement