Did you notice that the code you are using contains this line:
print $xml;exit();
That would actually prevent anything from being displayed, although I appreciate that you may have added this for debug purposes. If not, comment out or delete that line and you should see Amazon results.
If that's not the case, with that debug code in place the Amazon response should be output within the page HTML, but as it effectively appears as valid XHTML you ordinarily would not see anything. View the source of your page that should be showing Amazon results and check for any error response from the API that might indicate the problem. Double check in particular that there are Amazon results for the test query, or product name as the test query if including amazon.php on products.php by searching for the keyword(s) at Amazon.com itslef (or whichever Amazon domain you are an associate of)
If you're still not sure; feel free to email me your amazon.php and let me know what test keywords you are using and I'll check it out on my test server for you...
Hi tmrocks,
Did you notice that the code you are using contains this line:
print $xml;exit();
That would actually prevent anything from being displayed, although I appreciate that you may have added this for debug purposes. If not, comment out or delete that line and you should see Amazon results.
If that's not the case, with that debug code in place the Amazon response should be output within the page HTML, but as it effectively appears as valid XHTML you ordinarily would not see anything. View the source of your page that should be showing Amazon results and check for any error response from the API that might indicate the problem. Double check in particular that there are Amazon results for the test query, or product name as the test query if including amazon.php on products.php by searching for the keyword(s) at Amazon.com itslef (or whichever Amazon domain you are an associate of)
If you're still not sure; feel free to email me your amazon.php and let me know what test keywords you are using and I'll check it out on my test server for you...
Cheers,
David.
--
PriceTapestry.com