ok
Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/y1jobportal.in/admin/ |
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/y1jobportal.in/admin/payment_change.php |
<?php include 'header.php' ; if(isset($_REQUEST['change'])){ error_log('update starts..'); $status = $_POST['status']; $ids = $_POST['ids']; $statement_plan = $pdo->prepare("UPDATE `client` SET `payment_status` = ? WHERE `client`.`id` = ?;"); $statement_plan->execute([$status,$ids]); header('location:clients.php'); } ?> <!--clicked--> <form method="post" action=""> <div class="row" style="margin-top: 80px;" > <h3><center> <small>Payment status Change</small></center></h3> <div class="col-4" ></div> <div class="col-4"> <input type="hidden" name="ids" value="<?=$_GET['id']?>" /> <label for="inputProductType" class="form-label">Product Type</label> <select name="status" class="form-select" id="inputProductType"> <option value="1">Completed</option> <option value="0">Pending</option> </select> </div> <div class="col-4" ></div> <div class="col-12"> <br> <br> <br> <center><button class="btn btn-sm btn-danger" name="change" value="change">Submit</button></center> </div> </div> </form> <?php include 'footer.php' ?>