Advertisement
fapyw

detail

Feb 11th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.06 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Detail</title>
  5.     <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
  6. </head>
  7. <body>
  8.  
  9.     <?php
  10.  
  11.         $servername = "localhost";
  12.         $username = "root";
  13.         $password = "Silpakorn60";
  14.         $dbname = "db13580248";
  15.  
  16.         $conn = new mysqli($servername, $username, $password, $dbname);
  17.  
  18.         $sql ="SELECT * FROM student_tbl";
  19.         $sql ="SELECT * FROM vote_tbl";
  20.         $result = $conn->query($sql);
  21.  
  22.        
  23.  
  24.         $getG = isset($_GET['groupA']) ? $_GET['groupA'] : '';
  25.  
  26.         $sql ="SELECT * FROM vote_tbl WHERE id_group LIKE = 'getG'";
  27.         $conn->close();
  28.         while($row = $result->fetch_assoc()){
  29.  
  30.  
  31.     ?>
  32.  
  33.      <div class="container">
  34.         <div class="row">
  35.             <div class="page-header"><h1>Detail</h1> <small>By Student in Silpakorn University</small></div>
  36.        
  37.             <h3 class="group list-item-heading"><?php echo $row["id_group"]?></h3>
  38.             <h3 class="group list-item-heading"><?php echo $row["topics"]?></h3>
  39.             <h3 class="group list-item-heading"><?php echo $row["likeA"]?></h3>
  40.  
  41.         </div>
  42.  
  43.     </div>
  44.  
  45.     <?php } ?>
  46.  
  47. </body>
  48. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement