Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
12-06-2008, 06:05 PM #1
- Join Date
- Nov 2008
- Thanked 0 Times in 0 Posts
Shopping.com PHP Script is skipping groups...why?
I have a PHP code that is as follows...
$product_specs_xml = new product_specs_xml;
$this->xml = file_get_contents("http://publisher.api.shopping.com/publisher/3.0/rest/GeneralSearch?apiKey=REMOVED&trackingId=REMOVED&productId=$productId&showProductSpecs=true&numItems=0");
$groups = $this->parse_tags('featureGroup',$this->xml);
foreach($groups as $g)
$featureGroups["$featurename"] = array();
foreach($feature as $f)
$featureGroups["$featurename"]["$name"] = $value['1'];
foreach($featureGroups as $group => $features)
$this->rows .= "<thead>
foreach($featureGroups[$group] as $name => $value)
$this->rows .= "<tr><td>$name</td><td>$value</td></tr>";
echo '<div class="testReportChart">
With that particular link to that XML file, it shows the ProductMPN, Audio Capabilities, Screen, Other Features, and Dimensions <featureGroup>'s, but it skips the ones inbetween.
Why does this happen and how do I fix it? Thanks.