TinyPortal

Development => Support => Topic started by: pjr on October 19, 2006, 04:48:37 PM

Title: need help getting error in PHP article
Post by: pjr on October 19, 2006, 04:48:37 PM
this code

<div style="height:600px;width:300px;">
<a href="http://grazr.com/gzpanel.html?view=3p&file=http://www.ourplacetoplay.com/optp.opml" target="gz"><img src="http://grazr.com/images/grazrbadge.png" border="0"></a>
<script defer="defer" type="text/javascript" src="http://grazr.com/gzloader.js?view=3p&file=http://www.ourplacetoplay.com/optp.opml"></script>
</div>

produces this error

Parse error: syntax error, unexpected '<' in /var/www/localhost/htdocs/forum/Sources/Load.php(1613) : eval()'d code(225) : eval()'d code on line 1

Can some one help me out?
Title: Re: need help getting error in PHP article
Post by: akulion on October 19, 2006, 05:03:04 PM
ur putting that in a PHP box

it needs to go in a Script Box
Title: Re: need help getting error in PHP article
Post by: pjr on October 19, 2006, 05:15:20 PM
putting it in an article a php article not a box
Title: Re: need help getting error in PHP article
Post by: JPDeni on October 19, 2006, 05:19:44 PM
Try

echo '<div style="height:600px;width:300px;">
<a href="http://grazr.com/gzpanel.html?view=3p&file=http://www.ourplacetoplay.com/optp.opml" target="gz"><img src="http://grazr.com/images/grazrbadge.png" border="0"></a>
<script defer="defer" type="text/javascript" src="http://grazr.com/gzloader.js?view=3p&file=http://www.ourplacetoplay.com/optp.opml"></script>
</div>
';
Title: Re: need help getting error in PHP article
Post by: pjr on October 19, 2006, 05:57:52 PM
that worked thanks
Title: Re: need help getting error in PHP article
Post by: JPDeni on October 19, 2006, 06:18:14 PM
It might just work as you had it before in an html article, as long as you turn off the editor before you paste the code in. But the php works, so that's cool. :)