I have noticed that sometimes the results of the Amazon filter are unpredictable. For instance, in the code below I am looking for the author name and for the editorial review, both in HTML and in PHP. In HTML, the results are OK in both cases. When I try to get the same results in PHP, however, only the first one is OK, and the second one leads to a PHP error, even though we're using the same data in all four cases. I think this is a bug - or if I'm doing something wrong, please indicate how to get the data in the fourth case too.

In a plain HTML environment, this works:<br>

[amazon 0195157990 author]

<br>And this works too:<br>

[amazon 0195157990 editorialreview]
<br>

<?php
echo "<br>In a PHP environment, this works: <br>";
$authorname = "[amazon 0195157990 author]";
echo "<br>This works: <br>" . $authorname;

// The code below leads to an error. 
//$somereview = "[amazon 0195157990 editorialreview]";
//echo $somereview;

//Parse error: syntax error, unexpected T_STRING in E:\xampp\htdocs\dru721\modules\php\php.module(80) : eval()'d code on line 12
?>

Comments

modul’s picture

Anyone who can confirm this problem - or better still: rectify it?

modul’s picture

Don't want to sound "pushy"... But can anyone replicate my problem, or preferably solve it?

modul’s picture

Yes, I do feel pushy... Still: anyone who can shed some light on this matter?

modul’s picture

Issue summary: View changes

Just a grammatical correction