<?php
	include "koneksi.php";
	
	$mhb_id=mysqli_real_escape_string($conn,$_GET["id"]);
    echo "ini mhb id :".$mhb_id."<br>";	
    $tanggal_periksa_kelengkapan_cylinder = date('d / M / y');
	
	//checklist dat
	//1
    $rodVisualCondition=$_POST['rodVisualCondition'];
	$rodQty=$_POST['rodQty'];
	$rodLoss=$_POST['rodLoss'];
	//2
	$barrelVisualCondition=$_POST['barrelVisualCondition'];
	$barrelQty=$_POST['barrelQty'];
	$barrelLoss=$_POST['barrelLoss'];
	//3
	$glandVisualCondition=$_POST['glandVisualCondition'];
	$glandQty=$_POST['glandQty'];
	$glandLoss=$_POST['glandLoss'];
	//4
	$pistonVisualCondition=$_POST['pistonVisualCondition'];
	$pistonQty=$_POST['pistonQty'];
	$pistonLoss=$_POST['pistonLoss'];
	//5
	$collarVisualCondition=$_POST['collarVisualCondition'];
	$collarQty=$_POST['collarQty'];
	$collarLoss=$_POST['collarLoss'];
	//6
	$retainerVisualCondition=$_POST['retainerVisualCondition'];
	$retainerQty=$_POST['retainerQty'];
	$retainerLoss=$_POST['retainerLoss'];
	//7
	$rodEyeVisualCondition=$_POST['rodEyeVisualCondition'];
	$rodEyeQty=$_POST['rodEyeQty'];
	$rodEyeLoss=$_POST['rodEyeLoss'];
	//8
	$barrelEyeVisualCondition=$_POST['barrelEyeVisualCondition'];
	$barrelEyeQty=$_POST['barrelEyeQty'];
	$barrelEyeLoss=$_POST['barrelEyeLoss'];
	//9
	$bushingRodEyeVisualCondition=$_POST['bushingRodEyeVisualCondition'];
	$bushingRodEyeQty=$_POST['bushingRodEyeQty'];
	$bushingRodEyeLoss=$_POST['bushingRodEyeLoss'];
	//10
	$bushingBarrelEyeVisualCondition=$_POST['bushingBarrelEyeVisualCondition'];
	$bushingBarrelEyeQty=$_POST['bushingBarrelEyeQty'];
	$bushingBarrelEyeLoss=$_POST['bushingBarrelEyeLoss'];
	//11
	$fittingGreaseVisualCondition=$_POST['fittingGreaseVisualCondition'];
	$fittingGreaseQty=$_POST['fittingGreaseQty'];
	$fittingGreaseLoss=$_POST['fittingGreaseLoss'];
	//12
	$airBleederVisualCondition=$_POST['airBleederVisualCondition'];
	$airBleederQty=$_POST['airBleederQty'];
	$airBleederLoss=$_POST['airBleederLoss'];
	//13
	$valveVisualCondition=$_POST['valveVisualCondition'];
	$valveQty=$_POST['valveQty'];
	$valveLoss=$_POST['valveLoss'];
	//14
	$pipingVisualCondition=$_POST['pipingVisualCondition'];
	$pipingQty=$_POST['pipingQty'];
	$pipingLoss=$_POST['pipingLoss'];
	//15
	$hoseVisualCondition=$_POST['hoseVisualCondition'];
	$hoseQty=$_POST['hoseQty'];
	$hoseLoss=$_POST['hoseLoss'];
	//16
	$boltGlandVisualCondition=$_POST['boltGlandVisualCondition'];
	$boltGlandQty=$_POST['boltGlandQty'];
	$boltGlandLoss=$_POST['boltGlandLoss'];
	//17
	$washerVisualCondition=$_POST['washerVisualCondition'];
	$washerQty=$_POST['washerQty'];
	$washerLoss=$_POST['washerLoss'];
	//18
	$nutPistonVisualCondition=$_POST['nutPistonVisualCondition'];
	$nutPistonQty=$_POST['nutPistonQty'];
	$nutPistonLoss=$_POST['nutPistonLoss'];
	//19
	$ballBearingVisualCondition=$_POST['ballBearingVisualCondition'];
	$ballBearingQty=$_POST['ballBearingQty'];
	$ballBearingLoss=$_POST['ballBearingLoss'];
	//20
	$plungerVisualCondition=$_POST['plungerVisualCondition'];
	$plungerQty=$_POST['plungerQty'];
	$plungerLoss=$_POST['plungerLoss'];
	//21
	$lockScrewVisualCondition=$_POST['lockScrewVisualCondition'];
	$lockScrewQty=$_POST['lockScrewQty'];
	$lockScrewLoss=$_POST['lockScrewLoss'];
	//22
	$stopperVisualCondition=$_POST['stopperVisualCondition'];
	$stopperQty=$_POST['stopperQty'];
	$stopperLoss=$_POST['stopperLoss'];
	//23
	$cushionVisualCondition=$_POST['cushionVisualCondition'];
	$cushionQty=$_POST['cushionQty'];
	$cushionLoss=$_POST['cushionLoss'];
	//24
	$duBushingVisualCondition=$_POST['duBushingVisualCondition'];
	$duBushingQty=$_POST['duBushingQty'];
	$duBushingLoss=$_POST['duBushingLoss'];
	//25
	$ringPistonVisualCondition=$_POST['ringPistonVisualCondition'];
	$ringPistonQty=$_POST['ringPistonQty'];
	$ringPistonLoss=$_POST['ringPistonLoss'];
	//26
	$boltSupportVisualCondition=$_POST['boltSupportVisualCondition'];
	$boltSupportQty=$_POST['boltSupportQty'];
	$boltSupportLoss=$_POST['boltSupportLoss'];
	//27
	$snapRingVisualCondition=$_POST['snapRingVisualCondition'];
	$snapRingQty=$_POST['snapRingQty'];
	$snapRingLoss=$_POST['snapRingLoss'];
	//28
	$sensorVisualCondition=$_POST['sensorVisualCondition'];
	$sensorQty=$_POST['sensorQty'];
	$sensorLoss=$_POST['sensorLoss'];
	//29
	$sealDustVisualCondition=$_POST['sealDustVisualCondition'];
	$sealDustQty=$_POST['sealDustQty'];
	$sealDustLoss=$_POST['sealDustLoss'];
	//30
	$sealsVisualCondition=$_POST['sealsVisualCondition'];
	$sealsQty=$_POST['sealsQty'];
	$sealsLoss=$_POST['sealsLoss'];
	//31
	$shimVisualCondition=$_POST['shimVisualCondition'];
	$shimQty=$_POST['shimQty'];
	$shimLoss=$_POST['shimLoss'];
	//32
	$springVisualCondition=$_POST['springVisualCondition'];
	$springQty=$_POST['springQty'];
	$springLoss=$_POST['springLoss'];
	
	
    echo "<br>"."rod visual condition :".$rodVisualCondition;
	echo "<br>"."rod qty :".$rodQty;
	echo "<br>"."rod loss :".$rodLoss;
	
	
	//foto
    //1	
    $nama_file1 = $_FILES['rodPicture']['name'];
    $ukuran_file1 = $_FILES['rodPicture']['size'];
    $tipe_file1 = $_FILES['rodPicture']['type'];
    $tmp_file1 = $_FILES['rodPicture']['tmp_name'];
	 //2	
    $nama_file2 = $_FILES['barrelPicture']['name'];
    $ukuran_file2 = $_FILES['barrelPicture']['size'];
    $tipe_file2 = $_FILES['barrelPicture']['type'];
    $tmp_file2 = $_FILES['barrelPicture']['tmp_name'];
	 //3	
    $nama_file3 = $_FILES['glandPicture']['name'];
    $ukuran_file3 = $_FILES['glandPicture']['size'];
    $tipe_file3 = $_FILES['glandPicture']['type'];
    $tmp_file3 = $_FILES['glandPicture']['tmp_name'];
	 //4	
    $nama_file4 = $_FILES['pistonPicture']['name'];
    $ukuran_file4 = $_FILES['pistonPicture']['size'];
    $tipe_file4 = $_FILES['pistonPicture']['type'];
    $tmp_file4 = $_FILES['pistonPicture']['tmp_name'];
	 //5	
    $nama_file5 = $_FILES['collarPicture']['name'];
    $ukuran_file5 = $_FILES['collarPicture']['size'];
    $tipe_file5 = $_FILES['collarPicture']['type'];
    $tmp_file5 = $_FILES['collarPicture']['tmp_name'];
	//6	
    $nama_file6 = $_FILES['retainerPicture']['name'];
    $ukuran_file6 = $_FILES['retainerPicture']['size'];
    $tipe_file6 = $_FILES['retainerPicture']['type'];
    $tmp_file6 = $_FILES['retainerPicture']['tmp_name'];	
	//7	
    $nama_file7 = $_FILES['rodEyePicture']['name'];
    $ukuran_file7 = $_FILES['rodEyePicture']['size'];
    $tipe_file7 = $_FILES['rodEyePicture']['type'];
    $tmp_file7 = $_FILES['rodEyePicture']['tmp_name'];
	//8	
    $nama_file8 = $_FILES['barrelEyePicture']['name'];
    $ukuran_file8 = $_FILES['barrelEyePicture']['size'];
    $tipe_file8 = $_FILES['barrelEyePicture']['type'];
    $tmp_file8 = $_FILES['barrelEyePicture']['tmp_name'];
	//9	
    $nama_file9 = $_FILES['bushingRodEyePicture']['name'];
    $ukuran_file9 = $_FILES['bushingRodEyePicture']['size'];
    $tipe_file9 = $_FILES['bushingRodEyePicture']['type'];
    $tmp_file9 = $_FILES['bushingRodEyePicture']['tmp_name'];
	//10	
    $nama_file10 = $_FILES['bushingBarrelEyePicture']['name'];
    $ukuran_file10 = $_FILES['bushingBarrelEyePicture']['size'];
    $tipe_file10 = $_FILES['bushingBarrelEyePicture']['type'];
    $tmp_file10 = $_FILES['bushingBarrelEyePicture']['tmp_name'];
	//11	
    $nama_file11 = $_FILES['fittigGreasePicture']['name'];
    $ukuran_file11 = $_FILES['fittigGreasePicture']['size'];
    $tipe_file11 = $_FILES['fittigGreasePicture']['type'];
    $tmp_file11 = $_FILES['fittigGreasePicture']['tmp_name'];
	//12	
    $nama_file12 = $_FILES['airBleederPicture']['name'];
    $ukuran_file12 = $_FILES['airBleederPicture']['size'];
    $tipe_file12 = $_FILES['airBleederPicture']['type'];
    $tmp_file12 = $_FILES['airBleederPicture']['tmp_name'];
	//13	
    $nama_file13 = $_FILES['valvePicture']['name'];
    $ukuran_file13 = $_FILES['valvePicture']['size'];
    $tipe_file13 = $_FILES['valvePicture']['type'];
    $tmp_file13 = $_FILES['valvePicture']['tmp_name'];
	//14	
    $nama_file14 = $_FILES['pipingPicture']['name'];
    $ukuran_file14 = $_FILES['pipingPicture']['size'];
    $tipe_file14 = $_FILES['pipingPicture']['type'];
    $tmp_file14 = $_FILES['pipingPicture']['tmp_name'];
	//15	
    $nama_file15 = $_FILES['hosePicture']['name'];
    $ukuran_file15 = $_FILES['hosePicture']['size'];
    $tipe_file15 = $_FILES['hosePicture']['type'];
    $tmp_file15 = $_FILES['hosePicture']['tmp_name'];
	//16	
    $nama_file16 = $_FILES['boltGlandPicture']['name'];
    $ukuran_file16 = $_FILES['boltGlandPicture']['size'];
    $tipe_file16 = $_FILES['boltGlandPicture']['type'];
    $tmp_file16 = $_FILES['boltGlandPicture']['tmp_name'];
	//17	
    $nama_file17 = $_FILES['washerPicture']['name'];
    $ukuran_file17 = $_FILES['washerPicture']['size'];
    $tipe_file17 = $_FILES['washerPicture']['type'];
    $tmp_file17 = $_FILES['washerPicture']['tmp_name'];
	//18	
    $nama_file18 = $_FILES['nutPistonPicture']['name'];
    $ukuran_file18 = $_FILES['nutPistonPicture']['size'];
    $tipe_file18 = $_FILES['nutPistonPicture']['type'];
    $tmp_file18 = $_FILES['nutPistonPicture']['tmp_name'];
	//19	
    $nama_file19 = $_FILES['ballBearingPicture']['name'];
    $ukuran_file19 = $_FILES['ballBearingPicture']['size'];
    $tipe_file19 = $_FILES['ballBearingPicture']['type'];
    $tmp_file19 = $_FILES['ballBearingPicture']['tmp_name'];
	//20	
    $nama_file20 = $_FILES['plungerPicture']['name'];
    $ukuran_file20 = $_FILES['plungerPicture']['size'];
    $tipe_file20 = $_FILES['plungerPicture']['type'];
    $tmp_file20 = $_FILES['plungerPicture']['tmp_name'];
	//21	
    $nama_file21 = $_FILES['lockScrewPicture']['name'];
    $ukuran_file21 = $_FILES['lockScrewPicture']['size'];
    $tipe_file21 = $_FILES['lockScrewPicture']['type'];
    $tmp_file21 = $_FILES['lockScrewPicture']['tmp_name'];
	//22	
    $nama_file22 = $_FILES['stopperPicture']['name'];
    $ukuran_file22 = $_FILES['stopperPicture']['size'];
    $tipe_file22 = $_FILES['stopperPicture']['type'];
    $tmp_file22 = $_FILES['stopperPicture']['tmp_name'];
	//23	
    $nama_file23 = $_FILES['cushionPicture']['name'];
    $ukuran_file23 = $_FILES['cushionPicture']['size'];
    $tipe_file23 = $_FILES['cushionPicture']['type'];
    $tmp_file23 = $_FILES['cushionPicture']['tmp_name'];
	//24	
    $nama_file24 = $_FILES['duBushingPicture']['name'];
    $ukuran_file24 = $_FILES['duBushingPicture']['size'];
    $tipe_file24 = $_FILES['duBushingPicture']['type'];
    $tmp_file24 = $_FILES['duBushingPicture']['tmp_name'];
	//25	
    $nama_file25 = $_FILES['ringPistonPicture']['name'];
    $ukuran_file25 = $_FILES['ringPistonPicture']['size'];
    $tipe_file25 = $_FILES['ringPistonPicture']['type'];
    $tmp_file25 = $_FILES['ringPistonPicture']['tmp_name'];
	//26	
    $nama_file26 = $_FILES['boltSupportPicture']['name'];
    $ukran_file26 = $_FILES['boltSupportPicture']['size'];
    $tipe_file26 = $_FILES['boltSupportPicture']['type'];
    $tmp_file26 = $_FILES['boltSupportPicture']['tmp_name'];
	//27	
    $nama_file27 = $_FILES['snapRingPicture']['name'];
    $ukuran_file27 = $_FILES['snapRingPicture']['size'];
    $tipe_file27 = $_FILES['snapRingPicture']['type'];
    $tmp_file27 = $_FILES['snapRingPicture']['tmp_name'];
	//28	
    $nama_file28 = $_FILES['sensorPicture']['name'];
    $ukuran_file28 = $_FILES['sensorPicture']['size'];
    $tipe_file28 = $_FILES['sensorPicture']['type'];
    $tmp_file28 = $_FILES['sensorPicture']['tmp_name'];
	//29	
    $nama_file29 = $_FILES['selDustPicture']['name'];
    $ukuran_file29 = $_FILES['selDustPicture']['size'];
    $tipe_file29 = $_FILES['selDustPicture']['type'];
    $tmp_file29 = $_FILES['selDustPicture']['tmp_name'];
	//30	
    $nama_file30 = $_FILES['seatsPicture']['name'];
    $ukuran_file30 = $_FILES['seatsPicture']['size'];
    $tipe_file30 = $_FILES['seatsPicture']['type'];
    $tmp_file30 = $_FILES['seatsPicture']['tmp_name'];
	//31	
    $nama_file31 = $_FILES['shimPicture']['name'];
    $ukuran_file31 = $_FILES['shimPicture']['size'];
    $tipe_file31 = $_FILES['shimPicture']['type'];
    $tmp_file31 = $_FILES['shimPicture']['tmp_name'];
	//32	
    $nama_file32 = $_FILES['springPicture']['name'];
    $ukuran_file32 = $_FILES['springPicture']['size'];
    $tipe_file32 = $_FILES['springPicture']['type'];
    $tmp_file32 = $_FILES['springPicture']['tmp_name'];
	
// Set path folder tempat menyimpan gambarnya
$path1 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file1;
$path2 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file2;
$path3 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file3;
$path4 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file4;
$path5 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file5;
$path6 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file6;
$path7 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file7;
$path8 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file8;
$path9 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file9;
$path10 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file10;
$path11 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file11;
$path12 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file12;
$path13 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file13;
$path14 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file14;
$path15 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file15;
$path16 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file16;
$path17 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file17;
$path18 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file18;
$path19 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file19;
$path20 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file20;
$path21 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file21;
$path22 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file22;
$path23 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file23;
$path24 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file24;
$path25 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file25;
$path26 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file26;
$path27 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file27;
$path28 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file28;
$path29 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file29;
$path30 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file30;
$path31 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file31;
$path32 = "fotoFormMHB-FR-PRO-D001-01/".$nama_file32;

   
     
	  move_uploaded_file($tmp_file1, $path1);
	  move_uploaded_file($tmp_file2, $path2);
	  move_uploaded_file($tmp_file3, $path3);
	  move_uploaded_file($tmp_file4, $path4);
	  move_uploaded_file($tmp_file5, $path5);
	  move_uploaded_file($tmp_file6, $path6);
	  move_uploaded_file($tmp_file7, $path7);
	  move_uploaded_file($tmp_file8, $path8);
	  move_uploaded_file($tmp_file9, $path9);
	  move_uploaded_file($tmp_file10, $path10);
	  move_uploaded_file($tmp_file11, $path11);
	  move_uploaded_file($tmp_file12, $path12);
	  move_uploaded_file($tmp_file13, $path13);
	  move_uploaded_file($tmp_file14, $path14);
	  move_uploaded_file($tmp_file15, $path15);
	  move_uploaded_file($tmp_file16, $path16);
	  move_uploaded_file($tmp_file17, $path17);
	  move_uploaded_file($tmp_file18, $path18);
	  move_uploaded_file($tmp_file19, $path19);
	  move_uploaded_file($tmp_file20, $path20);
	  move_uploaded_file($tmp_file21, $path21);
	  move_uploaded_file($tmp_file22, $path22);
	  move_uploaded_file($tmp_file23, $path23);
	  move_uploaded_file($tmp_file24, $path24);
	  move_uploaded_file($tmp_file25, $path25);
	  move_uploaded_file($tmp_file26, $path26);
	  move_uploaded_file($tmp_file27, $path27);
	  move_uploaded_file($tmp_file28, $path28);
	  move_uploaded_file($tmp_file29, $path29);
	  move_uploaded_file($tmp_file30, $path30);
	  move_uploaded_file($tmp_file31, $path31);
	  move_uploaded_file($tmp_file32, $path32);
	  
	  
	echo "<br>"."upload gambar"."<br>";
	$q = "UPDATE fom_dissasembly_checklist
	       SET rodVisualCondition='$rodVisualCondition',rodQty='$rodQty',rodLoss='$rodLoss',rodPicture='$nama_file1',
		       barrelVisualCondition='$barrelVisualCondition',barrelQty='$barrelQty',barrelLoss='$barrelLoss',barrelPicture='$nama_file2',
			   glandVisualCondition='$glandVisualCondition',glandQty='$glandQty',glandLoss='$glandLoss',glandPicture='$nama_file3',
			   pistonVisualCondition='$pistonVisualCondition',pistonQty='$pistonQty',pistonLoss='$pistonLoss',pistonPicture='$nama_file4',
			   collarVisualCondition='$collarVisualCondition',collarQty='$collarQty',collarLoss='$collarLoss',collarPicture='$nama_file5',
			   retainerVisualCondition='$retainerVisualCondition',retainerQty='$retainerQty',retainerLoss='$retainerLoss',retainerPicture='$nama_file6',
			   rodEyeVisualCondition='$rodEyeVisualCondition',rodEyeQty='$rodEyeQty',rodEyeLoss='$rodEyeLoss',rodEyePicture='$nama_file7',
			   barrelEyeVisualCondition='$barrelEyeVisualCondition',barrelEyeQty='$barrelEyeQty',barrelEyeLoss='$barrelEyeLoss',barrelEyePicture='$nama_file8',
			   bushingRodEyeVisualCondition='$bushingRodEyeVisualCondition',bushingRodEyeQty='$bushingRodEyeQty',bushingRodEyeLoss='$bushingRodEyeLoss',bushingRodEyePicture='$nama_file9',
			   bushingBarrelEyeVisualCondition='$bushingBarrelEyeVisualCondition',bushingBarrelEyeQty='$bushingBarrelEyeQty',bushingBarrelEyeLoss='$bushingBarrelEyeLoss',bushingBarrelEyePicture='$nama_file10',
			   fittingGreaseVisualCondition='$fittingGreaseVisualCondition',fittingGreaseQty='$fittingGreaseQty',fittingGreaseLoss='$fittingGreaseLoss',fittingGreasePicture='$nama_file11',
			   airBleederVisualCondition='$airBleederVisualCondition',airBleederQty='$airBleederQty',airBleederLoss='$airBleederLoss',airBleederPicture='$nama_file12',
			   valveVisualCondition='$valveVisualCondition',valveQty='$valveQty',valveLoss='$valveLoss',valvePicture='$nama_file13',
			   pipingVisualCondition='$pipingVisualCondition',pipingQty='$pipingQty',pipingLoss='$pipingLoss',pipingPicture='$nama_file14',
			   hoseVisualCondition='$hoseVisualCondition',hoseQty='$hoseQty',hoseLoss='$hoseLoss',hosePicture='$nama_file15',
			   boltGlandVisualCondition='$boltGlandVisualCondition',boltGlandQty='$boltGlandQty',boltGlandLoss='$boltGlandLoss',boltGlandPicture='$nama_file16',
			   washerVisualCondition='$washerVisualCondition',washerQty='$washerQty',washerLoss='$washerLoss',washerPicture='$nama_file17',
			   nutPistonVisualCondition='$nutPistonVisualCondition',nutPistonQty='$nutPistonQty',nutPistonLoss='$nutPistonLoss',nutPistonPicture='$nama_file18',
			   ballBearingVisualCondition='$ballBearingVisualCondition',ballBearingQty='$ballBearingQty',ballBearingLoss='$ballBearingLoss',ballBearingPicture='$nama_file19',
			   plungerVisualCondition='$plungerVisualCondition',plungerQty='$plungerQty',plungerLoss='$plungerLoss',plungerPicture='$nama_file20',
			   lockScrewVisualCondition='$lockScrewVisualCondition',lockScrewQty='$lockScrewQty',lockScrewLoss='$lockScrewLoss',lockScrewPicture='$nama_file21',
			   stopperVisualCondition='$stopperVisualCondition',stopperQty='$stopperQty',stopperLoss='$stopperLoss',stopperPicture='$nama_file22',
			   cushionVisualCondition='$cushionVisualCondition',cushionQty='$cushionQty',cushionLoss='$cushionLoss',cushionPicture='$nama_file23',
			   duBushingVisualCondition='$duBushingVisualCondition',duBushingQty='$duBushingQty',duBushingLoss='$duBushingLoss',duBushingPicture='$nama_file24',
			   ringPistonVisualCondition='$ringPistonVisualCondition',ringPistonQty='$ringPistonQty',ringPistonLoss='$ringPistonLoss',ringPistonPicture='$nama_file25',
			   boltSupportVisualCondition='$boltSupportVisualCondition',boltSupportQty='$boltSupportQty',boltSupportLoss='$boltSupportLoss',boltSupportPicture='$nama_file26',
			   snapRingVisualCondition='$snapRingVisualCondition',snapRingQty='$snapRingQty',snapRingLoss='$snapRingLoss',snapRingPicture='$nama_file27',
			   sensorVisualCondition='$sensorVisualCondition',sensorQty='$sensorQty',sensorLoss='$sensorLoss',sensorPicture='$nama_file28',
			   sealDustVisualCondition='$sealDustVisualCondition',sealDustQty='$sealDustQty',sealDustLoss='$sealDustLoss',sealDustPicture='$nama_file29',
			   sealsVisualCondition='$sealsVisualCondition',sealsQty='$sealsQty',sealsLoss='$sealsLoss',sealsPicture='$nama_file30',
			   shimVisualCondition='$shimVisualCondition',shimQty='$shimQty',shimLoss='$shimLoss',shimPicture='$nama_file31',
			   springVisualCondition='$springVisualCondition',springQty='$springQty',springLoss='$springLoss',springPicture='$nama_file32'
		   WHERE no_mhb_barang_job ='$mhb_id'";
		   
		   //status 3 = selesai cleaning and dat
		   $d = "UPDATE barang_job 
		         SET    status ='3' 
				 WHERE no_mhb_id = '$mhb_id'";
		   
		   $result = mysqli_query($conn, $q);
		   $result2 = mysqli_query($conn, $d);
				if($result && $result2)
				{ 
			      echo"masuk";
				  echo "<td>".$d;
				  header("location:cleaningAndDat.php?p=7&d=$mhb_id");
				}
				else
				{
					echo"tidak";
					echo "<td>".$q;
					//header("location:cleaningAndDat.php?p=1&d=$mhb_id");
				}
				
				                                 echo "<br>"."foto 1 : ".$nama_file1;
												 echo "<br>"."foto 2 : ".$nama_file2;
												 echo "<br>"."foto 3 : ".$nama_file3;
												 echo "<br>"."foto 4 : ".$nama_file4;
												 echo "<br>"."foto 5 : ".$nama_file5;
												 echo "<br>"."foto 6 : ".$nama_file6;
									


    
?>