-
Amazon Best Sellers
Appliances
Appstore for Android
Arts, Crafts & Sewing
Automotive
Baby Products
Beauty Gift Sets
Books
Camera & Photo
Cell Phones & Accessories
Clothing
Collectible Coins
Computers & Accessories
Electronics
Entertainment Collectibles
Gift Cards
Grocery & Gourmet Food
Health & Personal Care
Home & Kitchen
Home Improvement
Industrial & Scientific
Jewelry
Kindle Store
Kitchen & Dining
Top Paid Albums
Top Paid Songs
Magazines
Movies & TV
Music
Musical Instruments
Office Products
Patio, Lawn & Garden
Pet Supplies
Prime Pantry
Shoes
Software
Sports & Outdoors
Sports Collectibles
Toys & Games
Video Games
Watches
$q=$_POST?$_POST['q']:$_GET['q'];if($q==""){$q=0;}
if ($q=='') {$d="Laptops";$rss = "rss/new-releases/pc/565108/ref=zg_bsnr_565108_rsslink";}
elseif ($q==1) {$d="Appliances";$rss = "rss/bestsellers/appliances/3741361/ref=zg_bs_3741361_rsslink";}
elseif ($q==2) {$d="Mobile Apps";$rss = "rss/new-releases/mobile-apps/9209902011/ref=zg_bsnr_9209902011_rsslink";}
elseif ($q==3) {$d="Arts & Crafts";$rss = "rss/new-releases/arts-crafts/12896081/ref=zg_bsnr_12896081_rsslink";}
elseif ($q==4) {$d="Automotive";$rss = "rss/new-releases/automotive/ref=zg_bsnr_automotive_rsslink";}
elseif ($q==5) {$d="Baby Products";$rss = "rss/bestsellers/baby-products/166736011/ref=zg_bs_166736011_rsslink";}
elseif ($q==6) {$d="Beauty Gift Sets";$rss = "rss/bestsellers/beauty/11057131/ref=zg_bs_11057131_rsslink";}
elseif ($q==7) {$d="Books";$rss = "bestsellers/books/ref=zg_bs_books_rsslink";}
elseif ($q==8) {$d="Camera & Photo";$rss = "bestsellers/photo/ref=zg_bs_photo_rsslink";}
elseif ($q==9) {$d="Cell Phone";$rss = "bestsellers/wireless/ref=zg_bs_wireless_rsslink";}
elseif ($q==10) {$d="Clothing";$rss = "fashion/ref=zg_bsnr_fashion_rsslink";}
elseif ($q==11) {$d="Collectible Coins";$rss = "bestsellers/coins/ref=zg_bs_coins_rsslink";}
elseif ($q==12) {$d="Computers & Accessories";$rss = "bestsellers/pc/ref=zg_bs_pc_rsslink";}
elseif ($q==13) {$d="Electronics";$rss = "bestsellers/electronics/ref=zg_bs_electronics_rsslink";}
elseif ($q==14) {$d="Entertainment";$rss = "bestsellers/entertainment-collectibles/ref=zg_bs_entertainment-collectibles_rsslink";}
elseif ($q==15) {$d="Gift Cards";$rss = "movers-and-shakers/gift-cards/ref=zg_bsms_gift-cards_rsslink";}
elseif ($q==16) {$d="Grocery & Gourmet Food";$rss = "bestsellers/grocery/ref=zg_bs_grocery_rsslink";}
elseif ($q==17) {$d="Health & Personal Care";$rss = "bestsellers/hpc/ref=zg_bs_hpc_rsslink";}
elseif ($q==18) {$d="Home Garden";$rss = "bestsellers/home-garden/ref=zg_bs_home-garden_rsslink";}
elseif ($q==19) {$d="Home Improvement";$rss = "bestsellers/hi/ref=zg_bs_hi_rsslink";}
elseif ($q==20) {$d="Industrial";$rss = "bestsellers/industrial/ref=zg_bs_industrial_rsslink";}
elseif ($q==21) {$d="Jewelry";$rss = "bestsellers/jewelry/ref=zg_bs_jewelry_rsslink";}
elseif ($q==22) {$d="Kindle Store";$rss = "bestsellers/digital-text/ref=zg_bs_digital-text_rsslink";}
elseif ($q==23) {$d="Kitchen";$rss = "bestsellers/kitchen/ref=zg_bs_kitchen_rsslink";}
elseif ($q==24) {$d="Digital Albums";$rss = "bestsellers/dmusic/digital-music-album/ref=zg_bs_digital-music-album_rsslink";}
elseif ($q==25) {$d="Digital Songs";$rss = "bestsellers/dmusic/digital-music-track/ref=zg_bs_digital-music-track_rsslink";}
elseif ($q==26) {$d="Magazines";$rss = "bestsellers/magazines/ref=zg_bs_magazines_rsslink";}
elseif ($q==27) {$d="Movies & TV";$rss = "bestsellers/movies-tv/ref=zg_bs_movies-tv_rsslink";}
elseif ($q==28) {$d="Appliances";$rss = "bestsellers/music/ref=zg_bs_music_rsslink";}
elseif ($q==29) {$d="Instruments";$rss = "bestsellers/musical-instruments/ref=zg_bs_musical-instruments_rsslink";}
elseif ($q==30) {$d="Office Products";$rss = "bestsellers/office-products/ref=zg_bs_office-products_rsslink";}
elseif ($q==31) {$d="Lawn & Garden";$rss = "bestsellers/lawn-garden/ref=zg_bs_lawn-garden_rsslink";}
elseif ($q==32) {$d="Pet Supplies";$rss = "bestsellers/pet-supplies/ref=zg_bs_pet-supplies_rsslink";}
elseif ($q==33) {$d="Prime Pantry";$rss = "bestsellers/pantry/ref=zg_bs_pantry_rsslink";}
elseif ($q==34) {$d="Shoes";$rss = "bestsellers/shoes/ref=zg_bs_shoes_rsslink";}
elseif ($q==35) {$d="Software";$rss = "bestsellers/software/ref=zg_bs_software_rsslink";}
elseif ($q==36) {$d="Sporting Goods";$rss = "bestsellers/sporting-goods/ref=zg_bs_sporting-goods_rsslink";}
elseif ($q==37) {$d="Sports Collectibles";$rss = "bestsellers/sports-collectibles/ref=zg_bs_sports-collectibles_rsslink";}
elseif ($q==38) {$d="Toys & Games";$rss = "bestsellers/toys-and-games/ref=zg_bs_toys-and-games_rsslink";}
elseif ($q==39) {$d="Video Games";$rss = "bestsellers/videogames/ref=zg_bs_videogames_rsslink";}
elseif ($q==40) {$d="Watches";$rss = "bestsellers/watches/ref=zg_bs_watches_rsslink";}
$source = "https://www.amazon.com/gp/";
$source_link = $source.'/'.$rss;
$source_xml = simplexml_load_file($source_link);
//PRINT_R($source_xml);
$i =0;$lists = "
Best Sellers in $d
";
$ad = "
";
foreach ($source_xml->channel->item as $rss) {
$title = $rss->title;
$descr = $rss->description;
$link = $rss->link;
$pubdate = $rss->pubDate;
$date = date("Y-m-j G:i:s", strtotime($date_raw));
$descr = str_replace(" list for authoritative information on this product's current rank.","",$descr);
$descr = str_replace("
Buy Now ",$descr);
$lists .= "
";
if($i==2 || $i==7 || $i==12 || $i==17){
$lists .="
";
}$i = $i+1;
} echo $lists;
?>