Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. <?php
  2.  
  3. include "koneksi.php";
  4.  
  5. ?>
  6.  
  7. <!DOCTYPE html>
  8. <html lang="en">
  9. <head>
  10. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
  11. <meta charset="UTF-8">
  12. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  13. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  14. <title>Alamat Customer</title>
  15. </head>
  16. <body class= "container">
  17. <!--a href="index.html" class= "btn btn-primary">
  18. TAMBAH USER </a-->
  19.  
  20. <hr>
  21.  
  22.  
  23. <table class="table">
  24. <thead>
  25. <tr>
  26. <th scope="col">ID Alamat Customer</th>
  27. <th scope="col">Alamat Customer</th>
  28. <th scope="col">Kodepos Customer</th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. <?php
  33. $query = "SELECT * FROM alamat_konsumen;";
  34. $sql = mysqli_query ($connection, $query);
  35.  
  36. echo '<pre>';
  37. print_r($sql);
  38. echo '<pre>';
  39.  
  40. while($row = mysqli_fetch_assoc($sql)){ ?>
  41. <tr>
  42. <td><?php echo $row['idalamat_customer'] ?></td>
  43. <td><?php echo $row['alamat_customer'] ?></td>
  44. <td><?php echo $row['kodepos_customer'] ?></td>
  45. </tr>
  46. <?php } ?>
  47. </tbody
  48. </table>
  49. </body>
  50. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement