0){ $s = mysql_fetch_assoc($results); extract($s); } if (!$pid){ $pid = "$_GET[item]"; $query = "select * from product where pid='$_GET[item]'"; $results = db_query($query); if(mysql_num_rows($results) > 0){ $s = mysql_fetch_assoc($results); extract($s); } } $img = file_exists("products/$pid.jpg") ? "$name" : "$name"; echo <<

Shipley Products Catalogs

My Cart |  Check Out   shopping cart
$img

$name

END; if($voldis){ echo "Price Options and Quantity Discounts
"; $price = FormatMoney($price); do{ extract($s); $price = FormatMoney($p1); if ($maxamt == 0) { $maxamt == '+'; } echo << END; }while($s = mysql_fetch_assoc($results)); }else{ $price = FormatMoney($price); echo "

$$price each

"; } echo << END; if (file_exists("products/$pid.pdf")){ echo "
Print a FactSheet for this product"; } $fulldata = nl2br("$full"); echo <<
$minamt to $maxamt $$price each

$full



Return to Product Catalog
END; include('footer.php'); ?>