neilio Posted December 8, 2009 Share Posted December 8, 2009 Hi there - I have just been editing a small php file on from my website and am suddenly getting the following error. Parse error: syntax error, unexpected '=' in /home/unibco/public_html/bitrix/templates/.default/components/bitrix/blog.rss.link/vertical/template.php on line 13 This is the code that the error is in, am I missing something very simple?! <? if(!empty($arResult)) { ?><? foreach($arResult as $v) { ?><? } ?> <div> <table width="0" cellpadding="0" cellspacing="5" border="0" align="center"> <tbody> <tr><td><?=$v["url"]? __bxhref="<?=$v[">" title=<?=$v["name]?></td></tr> </tbody> </table> </div> Any help gratefully received, I'm stumped and it's really messed up my page. Thanks, Neil Link to comment https://forums.phpfreaks.com/topic/184336-repeated-php-error/ Share on other sites More sharing options...
ohdang888 Posted December 8, 2009 Share Posted December 8, 2009 change this: <tr><td><?=$v["url"]? __bxhref="<?=$v[">" title=<?=$v["name]?></td></tr> to: <tr><td><? echo $v["url"] ?> __bxhref="<? echo $v['YOUR VARAIBLE NAME HERE!!!!!']> " title="<? echo $v["name"] ?></td></tr> Link to comment https://forums.phpfreaks.com/topic/184336-repeated-php-error/#findComment-973191 Share on other sites More sharing options...
oni-kun Posted December 8, 2009 Share Posted December 8, 2009 change this: <tr><td><?=$v["url"]? __bxhref="<?=$v[">" title=<?=$v["name]?></td></tr> to: <tr><td><? echo $v["url"] ?> __bxhref="<? echo $v['YOUR VARAIBLE NAME HERE!!!!!']> " title="<? echo $v["name"] ?></td></tr> Still not recommended. If you're going to be portable at all, and compatable you'd use full opening tags. Try this: <tr><td><?php echo $v["url"]; ?> __bxhref="<?php echo $v['YOUR VARAIBLE NAME HERE!!!!!']; ?> " title="<?php echo $v["name"]; ?></td></tr> Link to comment https://forums.phpfreaks.com/topic/184336-repeated-php-error/#findComment-973204 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.