$num_items) { tpcw_error("illegal item ID " . $vars['I_ID'] . " - range is 1.." . $num_items); } db_connect(); db_start_transaction(true); /* * Obtain detail information about the item. */ $row = wrap('db_product_detail', $i_id); if (!$row) { tpcw_error("Item " . $i_id . " not found!"); } db_commit_transaction(); db_disconnect(); $i_title = $row[0]; $a_fname = $row[1]; $a_lname = $row[2]; $i_pub_date = $row[3]; $i_publisher = $row[4]; $i_subject = $row[5]; $i_desc = $row[6]; $i_image = $row[7]; $i_cost = $row[8]; $i_srp = $row[9]; $i_avail = $row[10]; $i_isbn = $row[11]; $i_page = $row[12]; $i_backing = $row[13]; $i_dimension = $row[14]; $you_save = $row[15]; /* * Insert tags into oversize words of the description * to avoid awkward formatting of the page */ $desc_words = explode(" ", $i_desc); for ($i = 0; $i < sizeof($desc_words); $i++) $desc_words[$i] = chunk_split($desc_words[$i], 40, ""); $i_desc = implode(" ", $desc_words); ?> TPC-W Product Detail

TPC Web Commerce Benchmark (TPC-W)

Product Detail Page

Title:

 
Author:
Subject:
 

Description:

Suggested Retail: $
Our Price: $
You Save: $

Backing: , pages
Pubblished by
Publication date:
Avail date:
Dimensions (in inches):
ISBN:


\n"; ?>