ok
Direktori : /proc/self/root/home/keydecors/www/ca/admin/app/controller/ |
Current File : //proc/self/root/home/keydecors/www/ca/admin/app/controller/patients_profile_update.php |
<?php //include database configuration file include("../model/dboperation.php"); $ids = mysqli_real_escape_string($mysqli , $_POST['ids']); $phone1 = mysqli_real_escape_string($mysqli , $_POST['phone1']); $phone2 = mysqli_real_escape_string($mysqli , $_POST['phone2']); $phone3 = mysqli_real_escape_string($mysqli , $_POST['phone3']); $phone4 = mysqli_real_escape_string($mysqli , $_POST['phone4']); $address = mysqli_real_escape_string($mysqli , $_POST['editor1']); $sql = "UPDATE footer_section SET phone1 = '$phone1', phone2 = '$phone2', phone3 = '$phone3', phone4 = '$phone4', address = '$address' WHERE ids='$ids'"; if (!mysqli_query($mysqli,$sql)) { die('Error: ' . mysqli_error($mysqli)); } header("location:../patients_profile_update.php?pro=$ids"); ?>