"in", "AssociateTag"=>"ertig-21", "ItemPage"=>$rcp, "Operation"=>"ItemSearch", // we will be searching "SearchIndex"=>"All", // search all categories, use "Books" to limit to books 'ResponseGroup'=>'Images,ItemAttributes,EditorialReview,Reviews,Offers,Similarities',// we want images, item info, reviews, and related items "Keywords"=>$search); // this is what we are looking for, you could use the book's title instead $queryUrl=$Amazon->getSignedUrl($parameters); $request=simplexml_load_file($queryUrl) ; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; for ($ikl3r = 1; $ikl3r < 6; $ikl3r=$ikl3r+1) { echo ''.$ikl3r.'       '; } echo ''; echo ' Page'.$rcp. ''; echo '
'; if($request->Items->TotalResults > 0) { echo ""; for ($ikl32r = 0; $ikl32r < 10; $ikl32r=$ikl32r+3) { echo ""; for ($iam = $ikl32r; $iam< $ikl32r+3; $iam=$iam+1) { echo ""; } } echo "
"; if ($iam< 10 ) { if ($iam< $request->Items->TotalResults ) { // we have at least one response //set Amazon xml values as specifc variables to be printed out below $image = $request->Items->Item[$iam]->MediumImage->URL; if (empty($image)) { $image = '* Image Not Available'; } $title = $request->Items->Item[$iam]->ItemAttributes->Title; $listprice= $request->Items->Item[$iam]->ItemAttributes->ListPrice->FormattedPrice; $listprice1= $request->Items->Item[$iam]->Offers->Offer->OfferListing->Price->FormattedPrice; $listprice2= $request->Items->Item[$iam]->Offers->Offer->OfferListing->SalePrice->FormattedPrice; //simple logic check for author and director values, shows $uri = $request->Items->Item[$iam]->DetailPageURL; $uri1a=str_replace("%26tag%3Dertig-21%26","/?tag=ertig-21&", $uri); //print out Amazon xml values as html echo 'Compare
'; echo ''; echo 'Available in Amazon.in
'.$title.''."\n"; echo '
'; echo ''."\n"; echo '
'; if (empty($listprice2)) { echo '
Final Price '.$listprice1.''."\n"; } else { echo '
Final Price '.$listprice2.''."\n"; } echo ' List Price '.$listprice.''."\n"; echo '
'; } } echo "
"; } else { //no search results echo ''; echo '

"'.$first_part5a.'" not available at Amazon.in Click here to avail other best offers

'; echo '
'; } echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; for ($ikl3mr = 1; $ikl3mr < 6; $ikl3mr=$ikl3mr+1) { echo ''.$ikl3mr.'       '; } echo ''; echo ' Page'.$rcp. ''; echo '
'; ?>