<?php 	

require_once '../includes/core.php';

$productId = $_GET['i'];

$sql = "SELECT product_image FROM ".$db_prefix."product WHERE product_id = {$productId}";
$data = $connect->query($sql);
$result = $data->fetch_row();

$connect->close();

echo "assests/images/stock/" . $result[0];
