You are here: tweaking amazon associate mode code with php? « PHP Programming Language « IT news, forums, messages
tweaking amazon associate mode code with php?

Posted by Atwiawomo on 01/21/08 12:10

Hi

I'm playing with a bit of php code to generate a list of amazon
associate products in an iframe:

<?php
$keywords = array(
"dslr", "lens", "canon", "nikon","nikkor", "sigma", "flash", "tripod",
"camera", "sandisk", "speedlite"
);
$search = $keywords[rand(0,count($keywords)-1)];
if ($country == "GB")
{
print "<iframe src=\"http://rcm-uk.amazon.co.uk/e/cm?
t=ASSOCIATECODE&o=2&p=13&l=st1";
print "&mode=electronics-uk&search=$search&=1&fc1=&lt1=&lc1=&bg1=&f=ifr
\" marginwidth=\"0\" marginheight=\"0\" width=\"468\" height=\"60\"
border=\"0\" frameborder=\"0\" style=\"border:none;\" scrolling=\"no
\"></iframe>";
}
?>

The section "&mode=electronics-uk" will bring up results from the
Amazon UK category "Electronics".
I don't want to limit the category just to "Electronics". I want the
results to come from all the categories, so from:
"kitchen-uk baby-uk books-uk electronics-uk apparel-uk" and so
on.

Apart from selecting the mode (category) randomly as i do with the
keyword above, is there a way I can set the mode to all? and show a
few products across different categories?

Many thanks if anyone can help

Mr M

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация