• File: fetchProductImageUrl.php
  • Full Path: /home/dealkatnwc/www/GARAGE/php_action/fetchProductImageUrl.php
  • Date Modified: 12/11/2023 3:34 PM
  • File size: 247 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php 	

require_once 'core.php';

$productId = $_GET['i'];

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

$connect->close();

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