daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Oct 12th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <section class="ICO">
  2.           <div class="one-fourth-gridtable">
  3.                 <table class="grid table">
  4.                      <?php while($subject = mysqli_fetch_assoc($subject_set)) {
  5.                      $imagenavn = $subject['navn'];
  6.                      $sql = "SELECT * FROM product_images WHERE image_name = '$imagenavn'";
  7.                      $sth = $db->query($sql);
  8.                      $result=mysqli_fetch_array($sth);
  9.                 ?>
  10.  
  11.                 <td> <div style="border: 1px solid black; border-radius:2000px;">
  12.  
  13.             <?php echo '<img src="data:image/jpeg;base64,'.base64_encode( $result['image'] ).'"/>'; ?>
  14.  
  15.             </div><a class="action" href="<?php echo url_for('../show.php?id=' . h(u($subject['id']))); ?>"><?php echo h($subject['navn']); ?></a>
  16.  
  17.                 </td>
  18.  
  19.             <?php } ?>
  20.             </table>
  21.             </div>
  22.             </section>
  23.    
  24. table {
  25.     background-color:#6991AC;
  26.     width: 100%;
  27.     text-align:center;
  28.     display:inline-table;
  29.     margin-top:-5%;
  30.     }
  31. .ICO {
  32.     max-width:1100px;
  33.     margin: 0 auto; }
  34. .one-fourth-gridtable {
  35.     width:100%;
  36. }
RAW Paste Data
Top