Mini Kabibi Habibi

Current Path : C:/xampp/htdocs/cid/fts/ADMIN/
Upload File :
Current File : C:/xampp/htdocs/cid/fts/ADMIN/update_docs.php

<?php
include_once '../database.php';
 {
	 $id = $_POST['id'];
   
	$add_personnel = "UPDATE documents_recieved SET current_location =  '$_POST[current_location]',recieving_personnel =  '$_POST[recieving_personnel]',date_acknowledge =  '$_POST[date_acknowledge]',recieving_date =  '$_POST[date_acknowledge]', expiration_date = '$_POST[expiration_date]', stats = '$_POST[status]', next_location = '$_POST[next_location]', ofc2 = '$_POST[ofc2]',  ofc3 = '$_POST[ofc3]',  ofc4 = '$_POST[ofc4]', ofc5 = '$_POST[ofc5]', ofc6 = '$_POST[ofc6]', ofc7 = '$_POST[ofc7]' WHERE id = '$_POST[id]'";
	
    if(mysqli_query($conn, $add_personnel)){
        echo "<script type='text/javascript'>alert('Successful - record Updated!'); window.location.href='recieved_docs.php';</script>";
    }else{
        echo "ERROR: " . $add_personnel."
        " . mysqli_error($conn);
    }
    mysqli_close($conn);
    }

?>