TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 141
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 120
  • Total: 120

need help getting error in PHP article

Started by pjr, October 19, 2006, 04:48:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pjr

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?

akulion

ur putting that in a PHP box

it needs to go in a Script Box

pjr

putting it in an article a php article not a box

JPDeni

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>
';


JPDeni

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. :)

This website is proudly hosted on Crocweb Cloud Website Hosting.