First, I need to thank 'jtadeo' for posting his knowledge. It has worked most of it for me by following the steps given, but once I replaced the 'echo' statement in Content, I've been getting the same error as the others above:
Parse error: syntax error, unexpected '<' in /home/ethiomys/public_html/inc/classes/BxDolPageView.php(308) : eval()'d code on line 1
After many trial and error, my block works fine. But it worked only because I had to remove all html and javascript codes inside the php script. I couldn't parse other scripts in the PHP Block unless its only php script.
Is there anyone with suggestion on how to get the PHP block working with php code that contains html or java codes?
Here is mine the couldn't work:
<?php
include "config.php";
include "functions.php";
?>
<script language="javascript" see more type="text/javascript">
if(top!=self)
{
top.location.href=self.location.href;
}
</script>
Parse error: syntax error, unexpected '<' in /home/ethiomys/public_html/inc/classes/BxDolPageView.php(308) : eval()'d code on line 1
Anyone has a solution?
Is there anyone with suggestion on how to get the PHP block working with php code that contains html or java codes?
Here is mine the couldn't work:
<?php
include "config.php";
include "functions.php";
?>
<script language="javascript" see more