MINI MINI MANI MO

Path : /home/phaetpan/domains/phaetpanya.com/public_html/vibharamadmin/
File Upload :
Current File : /home/phaetpan/domains/phaetpanya.com/public_html/vibharamadmin/saveadd_service.php

<html>
<body>
<?php
	include("connect.php");
	
	date_default_timezone_set('Asia/Bangkok');
	$time = date("His");
	$date = date("Ymd");
	$type = substr($_FILES['filUpload']['name'],-4);

	$name = $date.$time.$type; 
	$status = "1"; 
	if(move_uploaded_file($_FILES["filUpload"]["tmp_name"],"../upload_file/$name"))
	{

		$strSQL = "INSERT INTO service";
		$strSQL .="(admin_id,img,icon,service1,service2,service3,service4,service5,service6,sub1,sub2,sub3,sub4,sub5,sub6,status) 
		VALUES ('".$_POST["admin"]."','".$name."','".$_POST["icon"]."',
		'".$_POST["service1"]."','".$_POST["service2"]."','".$_POST["service3"]."','".$_POST["service4"]."','".$_POST["service5"]."','".$_POST["service6"]."',
		'".$_POST["sub1"]."','".$_POST["sub2"]."','".$_POST["sub3"]."','".$_POST["sub4"]."','".$_POST["sub5"]."','".$_POST["sub6"]."','".$status."')";      
		$objQuery = mysqli_query($objCon,$strSQL);	
		
	}
?>
</body>
	<script type='text/javascript'>
		window.location.href = "service.php"     
	</script>
</html>

OHA YOOOO