<?php 
include("db_config.php"); 
if($_SERVER['REQUEST_METHOD']=='POST'){
$user_id = $_POST['user_id'];
$sql = "select wishlist.*,product.prod_img1 FROM wishlist join product on wishlist.prod_id=product.id WHERE user_id = '$user_id'";
$result = mysqli_query($conn, $sql);
if(mysqli_num_rows($result) > 0) {
while($row[] = mysqli_fetch_assoc($result)) {
 $tem = $row;
// $json = json_encode($tem);
}
  $response['data']=$tem;
  $response['status']=1;
}
else{
	 $response['status']=0;
}
	echo json_encode($response);
	mysqli_close($conn);
}


?>