Google
Edit File: form-details.php
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css"> <script src="https://code.jquery.com/jquery-3.7.0.min.js"></script> <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script> <meta name="robots" content="noindex"> </head> <body> <h2>Contact Enquiries</h2> <?php if(isset($_GET['updated'])){ echo "<script>alert('Updated Successfully');</script>"; } ?> <table id="usersTable" class="display"> <thead> <tr> <th>ID</th> <th>Name</th> <th>Email</th> <th>Phone</th> <th>Subject</th> <th>Message</th> <th>Actions</th> </tr> </thead> </table> <script> $(document).ready(function(){ $('#usersTable').DataTable({ "ajax": "fetch.php", "columns": [ { data: "id" }, { data: "name" }, { data: "email" }, { data: "phone" }, { data: "subject" }, { data: "message" }, { data: "id", render: function(data){ return `<a href="edit.php?id=${data}"> <button>Edit</button> </a>`; } } ] }); }); </script> </body> </html>