"; return $button; } //generate variables for item $query = "select * from item where comments='".$_GET['id']."'"; $query_result = mysql_query($query); $row = mysql_fetch_array($query_result); $prod_id = $row['product_id']; $title = $row['title']; $price_retail = $row['price_retail']; $price_sales = $row['price_sales']; $desc = $row['description']; $policy_num = $row['policy_num']; if ($price_sales != 0) { $sales_link = "
Sales Price: \$$price_sales"; $final_price = $price_sales; } else { $sales_link = ""; $final_price = $price_retail; } //generate add to cart button $button = buildbutton($prod_id, $title, $final_price); if ($row['status'] == "o") { $button = ""; $header = "

Note: This item is temporarily unavailable.


"; } //generate sales policy $query2 = "select * from policies where id='$policy_num'"; $query_result2 = mysql_query($query2); $row2 = mysql_fetch_array($query_result2); $policy = $row2['description']; ?> Ruby Electronics: <?=$title; ?>

Sku:


"; echo $desc; ?>

"; echo $button; echo "Retail Price: \$$price_retail"; echo "$sales_link

"; ?>