golden hour
/home/phakp/public_html/bkp_full/old_site_bkp/form
⬆️ Go Up
Upload
File/Folder
Size
Actions
connect.php
340 B
Del
OK
display.php
912 B
Del
OK
error_log
2.41 KB
Del
OK
insert.php
1.25 KB
Del
OK
update.php
1.61 KB
Del
OK
Edit: display.php
<?php include("connect.php"); error_reporting(0); $query = "SELECT * FROM `members`"; $data = mysqli_query($conn, $query); $total = mysqli_num_rows($data); if($total != 0) { ?> <style> td { padding:10px; } </style> <table> <tr> <th>ID</th> <th>Name</th> <th>Email</th> <th>Phone</th> <th colspan=2>Operations</th> </tr> <?php while($result = mysqli_fetch_assoc($data)) { echo "<tr> <td>".$result['id']."</td> <td>".$result['name']."</td> <td>".$result['email']."</td> <td>".$result['phone']."</td> <td><a href='update.php?id=$result[id]&nm=$result[name]&em=$result[email]&ph=$result[phone]'>Edit</a></td> <td><a href='#'>Delete</a><td/> </tr>"; } } else { echo "<br />no record found"; } ?> </table>
Save