ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

problem with php strings

August 27, 2007 12:24pm

Subscribe [1]
  • #1 / Aug 27, 2007 12:24pm

    If have a problem with concatenating php-strings in EE (version 1.5.1).

    Instead of

    {exp:magpie url="http://www.url.nl/index.php/site/rss/" limit="3" refresh="720"}
    {items}
    <a href="http://$link%22target=%27_blank%27&gt{title}&lt/a&gt{/items}{/exp:magpie}/code/preI" target='_blank' rel="noopener">$title</a>";
    $str_tekst2 .= $str_tekst2 . "-" . $str_tekst1;
    ?>
    {/items}
    <?
    echo $str_tekst2;
    ?>
    {/exp:magpie}

    This results in: {title}

    When I echo each $str_tekst1 directly to the screen, instead of concatenating it to $str_tekst2, everything works fine.

    Has anybody an idea what goes wrong?

    [Moderator Edit: Moved to How To forum]

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases