Your Account / Logout?"; } else { $strLoginText = "Logout"; } } else { $strLoginText = "Don't forget: If you register, you can track your order! Login / Register"; } $url_vars = explode("/", $REQUEST_URI); if($prod) { // production $amount = 2; } else { // development server $amount = 3; } for($i=$amount; $i"; if($row['pimgname'] != "") { $imageExploded = explode(", ",$row['pimgname']); $countExploded = (count($imageExploded)-1); if(file_exists($row['pimgdir'].$imageExploded[$countExploded])) { $strImage = $prefix.$row['pimgdir'].$imageExploded[$countExploded]; $strEnlargeImg = $imageExploded[0]; $noImage = false; } else { $strImage = $prefix."images/products/noimage.png"; $noImage = true; } } else { $strImage = $prefix."images/products/noimage.png"; $noImage = true; } $strRand .= "
"; $strRand .= $row['pname']; $strRand .= "
"; $strRand .= "
"; $strRand .= ""; $strRand .= "
"; $strRand .= "
"; if($row['pdiscount'] == "" || $row['pdiscountexempt'] == "1") { $strRand .= "£".number_format($row['pretail'],2); } else if($row['pdiscount'] != "" && $row['pdiscountexempt'] != "1") { // work out the discount on this item $percent = $row['pdiscount']; $total = $row['pretail']; $discount_amount = ($total / 100)*$percent; $discount_price = $total - $discount_amount; $strRand .= "SALE: £".number_format($discount_price,2)." (ea.)"; } $strRand .= "
"; $strRand .= ""; } } $strBlogs = ""; $sQuery = "SELECT * FROM blog ORDER BY bdate DESC"; $result = mysql_query($sQuery); if($result) { $numBlogs = mysql_num_rows($result); if($numBlogs > 0) { while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $strBlogs .= '
'; $strBlogs .= '
'; $strBlogs .= ''.$row['bname'].''; $strBlogs .= '
'; $strBlogs .= '
'; $strBlogs .= strftime('%a %d %b %Y',strtotime($row['bdate'])); $strBlogs .= '
'; $strBlogs .= '
'; $strBlogs .= '
'; $strBlogs .= '
'; $strBlogs .= $row['btext']; $strBlogs .= '
'; $strBlogs .= '
'; } } } ?> The Crystal Man :: Blog

Welcome to Mike's blog, where the ol' fella will no doubt rant about this n' that and show off his brain full of mineral knowledge. Still here? Brilliant, just click on one of the orange links below to read his ramblings.



Your Basket
Random bits n' pieces!
Copyright(C)2010 The Crystal Man | Terms & Conditions
VAT Reg No 833 8779 81