Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "koneksi.php";
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Alamat Customer</title>
- </head>
- <body class= "container">
- <!--a href="index.html" class= "btn btn-primary">
- TAMBAH USER </a-->
- <hr>
- <table class="table">
- <thead>
- <tr>
- <th scope="col">ID Alamat Customer</th>
- <th scope="col">Alamat Customer</th>
- <th scope="col">Kodepos Customer</th>
- </tr>
- </thead>
- <tbody>
- <?php
- $query = "SELECT * FROM alamat_konsumen;";
- $sql = mysqli_query ($connection, $query);
- echo '<pre>';
- print_r($sql);
- echo '<pre>';
- while($row = mysqli_fetch_assoc($sql)){ ?>
- <tr>
- <td><?php echo $row['idalamat_customer'] ?></td>
- <td><?php echo $row['alamat_customer'] ?></td>
- <td><?php echo $row['kodepos_customer'] ?></td>
- </tr>
- <?php } ?>
- </tbody
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement