- πΊπΈUnited States sunil jolapara 3265 Summitrun Drive, Independence, KY, 41051
I have noticed that sometimes the results from the Amazon filter lead to unpredictable results. 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, 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
?>
Closed: duplicate
1.0
Code