0) { //$str .= "[$pnme, ".$_POST['hdsize'.$i]." (".$_POST['txtsize'.$i].")], "; $str .= $_POST['txtsize'.$i]." size ".$_POST['hdsize'.$i]." " . $pnme . "
"; } } $strmain[$_POST['pid']] = trim($str, "
") . " has been added to your cart."; /*echo ""; header("location:fencingshop.php");*/ } ?> Fencing Equipment and Apparel from London Fencing Club

Products

",$name); $imgtitle=explode("",$imgtitle[1]); $imgtitle=$imgtitle[0]; $description=$rows[$i][2]; $delivery=$rows[$i][3]; $image=$rows[$i][4]; $price=$rows[$i][5]; $checkquery="select sum(stock) from product_stock where pid=$pid"; $cresult=query_execute($checkquery); if (isset($cresult) && $cresult) { //Stock is there so Add the buy now button to the page $buynow="true"; } else { //No stock No Buy now button $buynow="false"; } $query2="select * from product_stock where pid=$pid order by `order`"; $result2=query_execute($query2); $totalsize2=num_rows($result2); $echo=""; if($result2 && $totalsize2>0) { $rows2=get_result($result2); $echo.="
"; $echo .=""; for($i2=0; $i2<$totalsize2;$i2++) { $p2=$rows2[$i2][4]; $p2=number_format($p2,2,'.',''); $s2=$rows2[$i2][2]; $st2=$rows2[$i2][3]; if($st2>0) { $echo.=""; }else{ $echo.=""; } } $echo .=""; $echo .="
 

Size: $s2 ($st2 available)

£ $p2 : Add to my list

Size: $s2($st2)

Out of stock

"; } //Display the Product Information here print ''; print ""; if ($image!="") { print ""; } print ""; /*if($strmain[$pid]!='') { echo ""; echo "".$strmain[$pid].""; }*/ echo ""; echo " "; //echo "

Buy Now"; } else { echo "

Currently not available

"; } echo ""; echo "

View more pictures

$name

$description

$echo

"; if ($buynow=="true"){ //echo "

 
"; } /*if(isset($_SESSION['cartData']) && count($_SESSION['cartData'])>0) { }*/ if(isset($_SESSION['cartData']) && count($_SESSION['cartData'])>0) { $vCart = ""; }else{ $vCart = "style='display:none;'"; } echo "
 
"; } else { //No Product Found or Error in the Sql Query echo "

There was an error getting product information or this product is currently unavailable". mysqli_error() ."

"; } //Footer File add here ?>