Using PHP, how can I get the element holding the visit ID from the corresponding row in the HTML table?
I have an HTML table that fills its data from a table in the database, there's an approve button for the admin to approve the visit and change its status to APPROVED, I need to know how I can be able to select element holding the ID, so I can query on the visits and edit its 'STATUS' attribute HTML table Here's the code inserting the table: <table class="table table-bordered table-striped"> <thead> <tr> <th scope="col">Request Num</th> <th scope="col">Visitor Name</th> <th scope="col">Car Number</th> <th scope="col">Visit Date</th> <th scope="col">Status</th> <th scope="col">Approve</th> </tr> </thead> <tbody> <?php if ($_SESSION['sess_flag'] == 1) { $getV