Gestionnaire de fichiers - Editer - /home/webapp68.cm.in.th/u68319090001/app/show.php
Arrière
<br><br><br><br> <?php // * คือ เอาฐานข้อมูลทั้งหมด $sql = "SELECT * FROM user"; $result = $conn->query($sql); /* if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { echo "id: " . $row["uid"]. " - Name: " . $row["username"]. "password : " . $row["password"]. "fullname : ". $row["fullname"] . "email : ". $row["email"] ."phone : ".$row["phone"] . "address : ".$row["address"]."time : ".$row["creation_date"]."<br>"; } } else { echo "0 results"; } $conn->close(); */ ?> <div class="container mt-3"> <h2>แสดงรายชื่อสมาชิก</h2> <?php if ($result->num_rows > 0){ ?> <?php if($_SESSION["login"]=="pass" and $_SESSION["uid_iogin"]){ ?> <a href="?page=regis" class="btn btn-success"> เพิ่มข้อมูล </a> <?php } ?> <table class="table table-bordered table-hover"> <thead> <tr> <th>ลำดับ</th> <th>ชื่อ - นามสกุล</th> <th>เบอร์โทร</th> <th>อีเมล์</th> <?php if($_SESSION["login"]=="pass" and $_SESSION["uid_iogin"]){ ?> <th>การจัดการ</th> <?php } ?> </tr> </thead> <tbody> <?php $no = 1; while($row = $result->fetch_assoc()) { ?> <tr> <td><?=$no?></td> <td><?=$row['fullname']?></td> <td><?=$row['phone']?></td> <td><?=$row['email']?></td> <?php if($_SESSION["login"]=="pass" and $_SESSION["uid_iogin"]){ ?> <td> <a href="?page=edit_user&uid=<?= $row['uid'] ?> " class="btn btn-outline-warning">แก้ไข</a> <a href="?page=delete_user&uid=<?= $row['uid'] ?> " class="btn btn-outline-danger">ลบ</a> </td> <?php } ?> </tr> <?php $no++; } ?> </tbody> </table> <?php } ?> </div>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Génération de la page: 0.09 |
proxy
|
phpinfo
|
Réglages