Destination-USA Home

Search Results

Search Travel Books:  

'; }else{ // Amazon function returned XML data $TotalPages = (int) $d_ar[$i_ar['TotalPages'][0]]['value']; $TotalResults = (int) $d_ar[$i_ar['TotalResults'][0]]['value']; /** * You can limit the number of page links displayed, * because some searches could potentially contain * dozens, even hundreds of pages. */ if($TotalResults > 100){ $TotalResults = 100; $TotalPages = 10; } 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 echo 'Your search for ' .$q. ' returned ' .$TotalResults. ' results.


'; // --- 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:



1){ echo 'Page:
'; for($k=1; $k<=$TotalPages; $k++){ if($k==$PageNum){ echo $k. ' '; }else{ echo '' .$k. ' '; } if($TotalPages != $k){ echo '| '; } } } } } ?>