Note that there are some explanatory texts on larger screens.

plurals
  1. POPhp parse always has href
    primarykey
    data
    text
    <p>Im trying to call my prices in this api which isnt a problem but the problem is the prices have links on them instead of regular text, can anyone see what im doing wrong?</p> <pre><code>&lt;?php $x = file_get_contents("http://sandbox.api.shopping.com/publisher/3.0/rest/GeneralSearch?apiKey=authorized-key&amp;trackingId=7000610&amp;categoryId=7185&amp;numItems=8&amp;printers"); $xml = simplexml_load_string($x); foreach($xml-&gt;categories-&gt;category-&gt;items-&gt;product as $item) { print '&lt;div style="float: left; width: 120px; padding: 10px; overflow: auto; display: block;"&gt;'; print '&lt;a rel="nofollow" onclick="javascript:_gaq.push([\'_trackPageview\', \'/outgoing/article_exit_link/789591\']);" href="'.$item-&gt;productOffersURL.'"&gt;&lt;img src="'.$item-&gt;images-&gt;image[0]-&gt;sourceURL.'" width="100"&gt;&lt;/a&gt;'; print '&lt;img src="'.$item-&gt;rating-&gt;ratingImage[0]-&gt;sourceURL.'" width="91"&gt;'; print "&lt;br/&gt;".l($item-&gt;name, $item-&gt;productOffersURL, array(), NULL, NULL, TRUE); //print "&lt;br/&gt;".l($item-&gt;shortDescription, $item-&gt;productOffersURL, array(), NULL, NULL, TRUE); // this is where the prices are. print "&lt;br/&gt;" .l($item-&gt;minPrice, $item-&gt;productOffersURL, array(), NULL, NULL, TRUE); print "&lt;br/&gt;".l($item-&gt;maxPrice, $item-&gt;productOffersURL, array(), NULL, NULL, TRUE); print '&lt;/div&gt;'; } ?&gt; </code></pre> <p>this is the dom firebug is returning.</p> <pre><code>&lt;div style="float: left; width: 120px; padding: 10px; overflow: auto; display: block;"&gt; &lt;a href="http://www.shopping.com/Canon-Canon-EOS-400D-Twin-Lens-Kit-Silver-Body-18-55mm-EF-75-300mm-f-4-5-6-Lens/prices~linkin_id-7000610" onclick="javascript:_gaq.push(['_trackPageview', '/outgoing/article_exit_link/789591']);" rel="nofollow"&gt;&lt;img width="100" src="http://di1.shopping.com/images/pi/cf/86/d8/58898587-100x100-0-0.jpg?p=p2.48bc03c211719c7871ea&amp;amp;a=2&amp;amp;c=1&amp;amp;l=7000610&amp;amp;t=110620123546&amp;amp;r=1"&gt;&lt;/a&gt; &lt;img width="91" src="http://img.shopping.com/sc/pr/sdc_stars_sm_4.5.gif"&gt;&lt;br&gt; &lt;a href="http://www.shopping.com/Canon-Canon-EOS-400D-Twin-Lens-Kit-Silver-Body-18-55mm-EF-75-300mm-f-4-5-6-Lens/prices~linkin_id-7000610"&gt;Canon EOS 400D / EOS Rebel XTi Digital Camera with 18-55mm and 75-300mm lenses&lt;/a&gt;&lt;br&gt; &lt;a href="http://www.shopping.com/Canon-Canon-EOS-400D-Twin-Lens-Kit-Silver-Body-18-55mm-EF-75-300mm-f-4-5-6-Lens/prices~linkin_id-7000610"&gt;598.00&lt;/a&gt;&lt;br&gt; &lt;a href="http://www.shopping.com/Canon-Canon-EOS-400D-Twin-Lens-Kit-Silver-Body-18-55mm-EF-75-300mm-f-4-5-6-Lens/prices~linkin_id-7000610"&gt;990.00&lt;/a&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload