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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.