Destination-USA

Books

Search Travel Books:  

'; }else{ // Amazon function returned XML data if($d_ar[$i_ar['ErrorMsg'][0]]['type']=='open' || $d_ar[$i_ar['ErrorMsg'][0]]['type']=='complete'){ // no results were found from the search echo 'Sorry, no results were found.

'; }else{ // results were found, so display the products // --- Display category links --- echo 'CATEGORIES:
'; foreach($ArraySearchString as $key => $value){ if($Browse == $key){ echo '' .$value. '
'; }else{ echo '' .$value. '
'; } } echo '


'; // --- Display links to sort the products --- echo 'Sort Results:
'; if('Featured'==$Sort){ echo 'Featured Item | '; }else{ echo 'Featured Item | '; } if('Sales'==$Sort){ echo 'Sales Rank | '; }else{ echo 'Sales Rank | '; } if('Reviews'==$Sort){ echo 'Customer Reviews'; }else{ echo 'Customer Reviews'; } echo '


'; // --- Display the product data returned from the XML --- $recordNumber = ($PageNum - 1)*10; /** * Loop through each
tag. * Assign each piece of data you want to use on your template to a variable, and then * echo that variable to display it on your site. */ for($i=0; $i .
Availability:
List Price:
Our Price:



10){ $TotalPages = 10; } /** * If there are more than 1 pages, then display * the pagination. */ if($TotalPages > 1){ echo 'Page:
'; for($k=1; $k<=$TotalPages; $k++){ if($k==$PageNum){ echo $k. ' '; }else{ echo '' .$k. ' '; } if($TotalPages != $k){ echo '| '; } } } } } ?>