<?php

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

	$sub_sub_cat = $_POST['sub_sub_category_id'];

 $sql = "SELECT * FROM product  where sub_sub_cat_id='$sub_sub_cat'";
		$r = mysqli_query($conn,$sql);
		$result = array();
		while($res = mysqli_fetch_array($r)){
		array_push($result,array(
		"prod_img1"=>$res['prod_img1']
		"prod_img2"=>$res['prod_img2']
		"prod_img3"=>$res['prod_img3']
		"prod_img4"=>$res['prod_img4']
		"prod_img5"=>$res['prod_img5']
		)
		);
		}
		echo json_encode(array("result"=>$result));
 

 ?>

}