php impload code is not working code mising : I am using PHP add to cart insert product and gest user detail all data is inserted but product-related data is not inserted please check it. and help me...


<?php	     
$msg='';

if(isset($_POST['submit'])) {
					  
$first_name  = mysqli_real_escape_string($conn, $_POST['first_name']);

$last_name  = mysqli_real_escape_string($conn, $_POST['last_name']);

$phone_number  = mysqli_real_escape_string($conn, $_POST['phone_number']);

$email_address = mysqli_real_escape_string($conn, $_POST['email_address']);

$address = mysqli_real_escape_string($conn, $_POST['address']);

$city = mysqli_real_escape_string($conn, $_POST['city']);

$zip_code = mysqli_real_escape_string($conn, $_POST['zip_code']); 
							
$state = mysqli_real_escape_string($conn, $_POST['state']);

$country  = mysqli_real_escape_string($conn, $_POST['country']);

$total = mysqli_real_escape_string($conn, $_POST['total']);

$paymentMethod = mysqli_real_escape_string($conn, $_POST['paymentMethod']);

$orderStatus = '1';

$orderDate   = date('Y-m-d H:i:s'); 

<!-----------------issue code -------------------->
				$productImage = array();

				$productName = array();

				$product_qty = array();

				$price = array();
				
				foreach($_SESSION["products"] as $product){

						$productName = $product["productName"]; 

						$productPrice = $product["productPrice"];

						$product_qty = $product["product_qty"];

						$productImage1 = $product["productImage1"];					
						
				}
				$productImage=implode(',', $productImage);

				$productName=implode(',', $productName);

				$product_qty=implode(',', $product_qty);

				$price=implode(',', $price);
				<!---------------------------------------------->
				   
$query = "INSERT INTO orders 
 
 (first_name,last_name,phone_number,email_address,address,
city,zip_code,state,country,productImage,productName,
product_qty,total,price,orderDate,paymentMethod,orderStatus) 
					VALUES('$first_name','$last_name','$phone_number','$email_address',
'$address','$city','$zip_code','$state','$country','$productImage',
'$productName','$product_qty','$total','$price','$orderDate',
'$paymentMethod','$orderStatus')";
								
	
$run= mysqli_query($conn, $query);

unset ($_SESSION["products"]);

echo "<script>window.location.assign('thankyou.php')</script>";
								

} 

 ?>