PHP Amazon Search (Demo)

searchRelated($term); } else { $se->searchTerm($term); } /* Call the search method with your search term */ $counter = 0; /* Cycle through the result set */ foreach ($se->results as $result) { $counter++; $authors = implode(', ', $result->Authors); $saving = $result->getSaving(); if ($saving) { $save = '
Save $'.$saving."!
\n"; } else { $save = ''; } echo << {$result->ProductName}

$counter. {$result->ProductName}

By $authors
ISBN: {$result->Asin} - List Related Items
Amazon Price: {$result->OurPrice}
List Price: {$result->ListPrice}
$save
EOD; } ?>