Jump to content

Repeated php error


neilio

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.