<?php

include("db_config.php"); 
if($_SERVER['REQUEST_METHOD']=='POST'){

	$product_id = $_POST['product_id'];

 $sql = "SELECT prod_img1,prod_img2,prod_img3,prod_img4,prod_img5 FROM product  where id='$product_id'";
		$result = mysqli_query($conn,$sql);
		if(mysqli_num_rows($result) > 0) {
		//echo json_encode(array('posts'=>$posts));
		while($row[] = mysqli_fetch_assoc($result)) {
 
		 $tem = $row;
		 
		 $json = json_encode($tem);
	}
	}
	else {
		$json = json_encode(array("status" => 0, "msg" => "data Not Found!"));
	}
	
	echo $json;
	mysqli_close($conn);
}
 ?>
