ok
Direktori : /home/keydecors/public_html/admin/controller/ |
Current File : /home/keydecors/public_html/admin/controller/service_update.php |
<?php //include database configuration file include("../model/dboperation.php"); $ids = mysqli_real_escape_string($mysqli, $_POST['ids']); $details = mysqli_real_escape_string($mysqli , $_POST['service']); $sql = "UPDATE service SET details = '$details' WHERE id='$ids'"; if (!mysqli_query($mysqli,$sql)) { die('Error: ' . mysqli_error($mysqli)); } header("location:../pages/service.php?pro=$ids");