Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function _getdataxml($item,$x = 0){
- $asin = $item['ASIN'];
- $Title = $item['Title'];
- $Subtitle = $item['Subtitle'];
- $Price = $item['Price'];
- $SmallImageURL = $item['SmallImageURL'];
- $MediumImageURL = $item['MediumImageURL'];
- $LargeImageURL = $item['LargeImageURL'];
- $Rating = $item['Rating'];
- $TotalReviews = $item['TotalReviews'];
- $category = $item['category'];
- $DetailPageURL = $item['DetailPageURL'];
- $binding = isset($item['binding']) ? $item['binding'] : '';
- $Published = isset($item['Published']) ? $item['Published'] : '';
- $authorNameList = isset($item['authorNameList']) ? $item['authorNameList'] : '';
- $numPages = isset($item['numPages']) ? $item['numPages'] : '';
- $LowestPrice = isset($item['LowestPrice']) ? $item['LowestPrice'] : '';
- $TotalOffers = isset($item['TotalOffers']) ? $item['TotalOffers'] : '';
- $product[$x] = array('Asin' => $asin,
- 'Title' => $Title,
- 'Subtitle' => $Subtitle,
- 'Price' => $Price,
- 'SmallImageURL' => $SmallImageURL,
- 'MediumImageURL' => $MediumImageURL,
- 'LargeImageURL' => $LargeImageURL,
- 'Rating' => $Rating,
- 'TotalReviews' => $TotalReviews,
- 'category' => $category,
- 'DetailPageURL' => $DetailPageURL,
- 'binding' => $binding,
- 'Published' => $Published,
- 'authorNameList' => $authorNameList,
- 'numPages' => $numPages,
- 'LowestPrice' => $LowestPrice,
- 'TotalOffers' => $TotalOffers
- );
- $result = array('Item' => $product);
- return $result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement