Ok so I've re-added all original files of Boomers and Im still getting this error message in the pop up?
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!
Can anyone see where the problem might be?
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");
?>
Ignore the crosses they just turn up when I copy and paste the code from dreamweaver??
if anyone needs to look at the site let me know