    <link rel="stylesheet" href="assets/css/style.css">
    <script src="../assets/js/lib/bootstrap.min.js"></script>
<table border ="1px black solid" class='table-striped'>
<tr>
			<td>
			UID
			</td>
			<td>
			Title
			</td>
			<td>
			Image
			</td>
			</tr>
			

	<?php
	error_reporting(E_ERROR | E_PARSE);
	 include 'configi.php';

		$queryprod="SELECT ".$_COOKIE['phxcrmclient_id']."prodserv.retail_price2, ".$_COOKIE['phxcrmclient_id']."prodserv.prod_cost_price, ".$_COOKIE['phxcrmclient_id']."web_dept.dept_id, ".$_COOKIE['phxcrmclient_id']."web_cat.cat_id, ".$_COOKIE['phxcrmclient_id']."web_cat.cat_name, ".$_COOKIE['phxcrmclient_id']."prodserv.uid, ".$_COOKIE['phxcrmclient_id']."prodserv.prod_title, ".$_COOKIE['phxcrmclient_id']."prodserv.prod_retail FROM ((".$_COOKIE['phxcrmclient_id']."prod_category INNER JOIN ".$_COOKIE['phxcrmclient_id']."web_cat ON ".$_COOKIE['phxcrmclient_id']."prod_category.cat_id = ".$_COOKIE['phxcrmclient_id']."web_cat.cat_id) INNER JOIN ".$_COOKIE['phxcrmclient_id']."prodserv ON ".$_COOKIE['phxcrmclient_id']."prod_category.prod_uid = ".$_COOKIE['phxcrmclient_id']."prodserv.uid) INNER JOIN ".$_COOKIE['phxcrmclient_id']."web_dept ON ".$_COOKIE['phxcrmclient_id']."web_cat.dept_id = ".$_COOKIE['phxcrmclient_id']."web_dept.dept_id where ".$_COOKIE['phxcrmclient_id']."prodserv.prod_status = 'Active';";
		
	//	echo $queryprod;
		

	//	echo $queryprod;
		$resultprod=mysqli_query($conn, $queryprod);
		
		$i = 0;

		while($rowprod=mysqli_fetch_array($resultprod)) { 

			$uid			 				= $rowprod['uid'];
			$prod_title		 				= $rowprod['prod_title'];
			$prod_retail	 				= $rowprod['prod_retail'];
			$retail_price2	 				= $rowprod['retail_price2'];
			$prod_cost_price	 			= $rowprod['prod_cost_price'];
			

?>

<?php
			$image_url = "https://iloveorganics.kiwi/images/products/".$uid."_1.png";
			
			if (getimagesize($image_url) !== false){
			
				$found = 1;
				
			}else{
					
				$found = 0;
				
			}
			

			if ($found == 0){
			?>
			
			
	<tr>
			<td>
			<?php echo $uid; ?>
			</td>
			<td>
			<?php echo $prod_title; ?>

			</td>
			
			
		
			<td>
			<?php 
				$image = "<img loading='lazy' src='".$image_url."' alt='' style='width: 150px' class='imaged w-50 square'>";
				echo $image;
				?>
			</td>			

		</tr>		

		<?php
		
			}
	$i = $i + 1;
	

		}



			
			?>
			</tr>
			</table>