Sorry still no go???
I've uploaded the files from your website also straight to my ftp etc and still getting the same problem when I click on the 'view details' bit in the product info
Warning: Invalid argument supplied for foreach() in d:\domains\kitinfo.co.uk\wwwroot\kitwarehouse\prod uct_detailed_images.php on line 18
No Image(s) Found!
this is line 18
Code:
foreach($images as $k=>$v) {
This is the full coding for the product_detailed_images.php
Code:
<?php
#
# Detailed Images Popup
# Version 2.1
# http://www.cart-lab.com
#
info@cart-lab.com
# (C)opyright 2003-2004 CartLab, all rights reserved.
# Full license at: http://www.cart-lab.com/license.php
#
require "./auth.php";
#
# Collect product images
#
$images = func_query("select * from $sql_tbl[images] where productid='$productid' order by orderby,imageid");
# Find max width and total height of all collected images (currently not used)
foreach($images as $k=>$v) {
foreach($v as $kk=>$vv) {
if($kk=="image_x") {
if($maxwidth >= $previous_maxwidth) {
$maxwidth=$vv;
}
$previous_maxwidth=$vv;
} elseif($kk=="image_y") {
if($maxheight >= $previous_maxheight) {
$maxheight=$vv;
}
$previous_maxheight=$vv;
}
}
}
$smarty->assign("winw",$maxwidth);
$smarty->assign("winh",$maxheight);
$smarty->assign("images",$images);
$smarty->display("customer/main/product_images.tpl");
?>
Is that coding in line 18 correct? has it been changed or should I be saving or loading my detailed images somewhere else??
Any help would be great or I will have to revert to an alternative way of viewing images??[/code][/b]