Advertisement
apl-mhd

Post select in index page

Sep 12th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.06 KB | None | 0 0
  1.         <div class="row"> <!--start row-->
  2.  
  3.  
  4.  
  5.             <?php
  6.  
  7.             $sql = "SELECT * FROM post";
  8.  
  9.             $result = $con->query($sql);
  10.  
  11.  
  12.  
  13.  
  14.                 while ($row = $result->fetch_assoc()){
  15.  
  16.                     $id = $row['postid'];
  17.  
  18.                     echo $id;
  19.                     echo  '
  20.  
  21.                     <div class="col-md-6 lead">
  22.  
  23.  
  24.                <div class="thumbnail">'
  25.  
  26.                   . '
  27.                    <img class="" src="img/apex.jpg">
  28.  
  29.                    <div class="caption">'.'
  30.                        <h3><del> '  . $row['discountrate']  . '% </del>'. ' Discount ' .'</h3>
  31.                        <h3>'.'' . $row['expire'] . ' Days left' .'</h3> ';
  32.  
  33.                      echo  ' <button type="button" class="btn btn-success form-control">';
  34.                       echo  '<a href="info.php?postid=' .$id .' ">'.'Clkkkkick</a> ';
  35. echo '</button>  
  36.  
  37.                    </div>
  38.                </div>
  39.            </div>
  40.                    
  41.                    ';
  42.  
  43.                 }
  44.  
  45. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement