Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Detail</title>
- <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
- </head>
- <body>
- <?php
- $servername = "localhost";
- $username = "root";
- $password = "Silpakorn60";
- $dbname = "db13580248";
- $conn = new mysqli($servername, $username, $password, $dbname);
- $sql ="SELECT * FROM student_tbl";
- $sql ="SELECT * FROM vote_tbl";
- $result = $conn->query($sql);
- $getG = isset($_GET['groupA']) ? $_GET['groupA'] : '';
- $sql ="SELECT * FROM vote_tbl WHERE id_group LIKE = 'getG'";
- $conn->close();
- while($row = $result->fetch_assoc()){
- ?>
- <div class="container">
- <div class="row">
- <div class="page-header"><h1>Detail</h1> <small>By Student in Silpakorn University</small></div>
- <h3 class="group list-item-heading"><?php echo $row["id_group"]?></h3>
- <h3 class="group list-item-heading"><?php echo $row["topics"]?></h3>
- <h3 class="group list-item-heading"><?php echo $row["likeA"]?></h3>
- </div>
- </div>
- <?php } ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement