0) { while($row = mysql_fetch_array($result)) { /* Set up picture */ if($row[thumb] == 1) $da_pic = $row[image1]; elseif($row[thumb] == 2) $da_pic = $row[image2]; elseif($row[thumb] == 3) $da_pic = $row[image3]; else $da_pic = "nopic.jpg"; $da_pic = "$pix_dir_thumbs"."$da_pic"; $dapicsize = getimagesize($da_pic); /* Set up Price */ $special_price = number_format(($row[special_price] * $currency_rate), 2, '.', ''); $price = number_format(($row[price] * $currency_rate), 2, '.', ''); if(($special_price != 0) && ($special_price < $price)) $pricestring = "Special Offer - $currency_symbol$special_price
usually $currency_symbol$price"; else $pricestring = "Only $currency_symbol$price"; /* Set up Options Categories */ if(strlen($row[size]) > 0) { $sizeselect = 1; $sizeoptions = explode("|", $row[size]); } else $sizeselect = 0; if(strlen($row[colour]) > 0) { $colourselect = 1; $colouroptions = explode("|", $row[colour]); } else $colourselect = 0; $description = str_replace("\n", "
", $row[description]); echo '
'; echo ""; if(($colourselect == 1) && ($sizeselect == 1)) $valid8 = "validateFormAll"; elseif(($colourselect == 1) && ($sizeselect == 0)) $valid8 = "validateFormColour"; elseif(($colourselect == 0) && ($sizeselect == 1)) $valid8 = "validateFormSize"; else $valid8 = "validateFormNone"; echo "
$cat_name - $row[name]$row[code]

$description


Click here for more information

"; echo "
$currency_symbol$pricestring


Add "; if($sizeselect == 1) { echo " your handset "; } echo "to cart   
"; echo '


'; }} else { echo "
Sorry, there are currently no products in this category.

Go back
"; } ?>