Hi Altrea
Sorry I should of pasted that in.
function displayProductSmall($db, $item_list, $img_path, $item_type){
foreach ($item_list as $item_id => $item){
$img_file = $img_path.$item_id.'.jpg';
if (file_exists("$img_file")){
list($width, $height) = getimagesize("$img_file");
$vertical = $height/2;
} else {
$img_file = $img_path.'no_image.jpg';
$width = '45px';
$height = '45px';
$vertical = '23';
}
if ($item_type == 'stack'){
$more_info_link = '?p=stack_details&stack_id='.$item_id;
} else {
$more_info_link = '?p=product_details&prod_id='.$item_id;
}
?>
<div class="sml_prod_box">
<div class="prod_img_small">
<a href="<?php=$more_info_link?>"><img src="<?php=$img_file?>" width="<?php=$width?>" height="<?php=$height?>" style="margin-top: - <?php=$vertical?>px" alt="<?php=$item[0]?>" /></a>
</div>
<a href="<?php=$more_info_link?>"><?php=$item[0]?></a>
</div>
My host for the online website uses Linux. Would I have been better off getting the Linux version of Xampp to run my site locally?