File manager - Edit - /home/custbahd/public_html/tests/admin panels/admin3/adminView/viewCustomers.php
Back
<div > <h2>All Customers</h2> <table class="table "> <thead> <tr> <th class="text-center">S.N.</th> <th class="text-center">Username </th> <th class="text-center">Email</th> <th class="text-center">Contact Number</th> <th class="text-center">Joining Date</th> </tr> </thead> <?php include_once "../config/dbconnect.php"; $sql="SELECT * from users where isAdmin=0"; $result=$conn-> query($sql); $count=1; if ($result-> num_rows > 0){ while ($row=$result-> fetch_assoc()) { ?> <tr> <td><?=$count?></td> <td><?=$row["first_name"]?> <?=$row["last_name"]?></td> <td><?=$row["email"]?></td> <td><?=$row["contact_no"]?></td> <td><?=$row["registered_at"]?></td> </tr> <?php $count=$count+1; } } ?> </table>
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 1.7 |
proxy
|
phpinfo
|
Settings