What??? PHP can't echo a variable ....?
<p>Hey guys I got this REALLY weird thing happening with my code ...</p>

<p>So I have the following code:</p>

<pre><code>echo '&lt;li&gt;&lt;a href="'.$Website.$Elements[2].'/'.$Row["povezava"].'" class="leftMenuArticlesInactive"&gt;&lt;/a&gt;&lt;li&gt;';
</code></pre>

<ol>
<li>$Website contains: <a href="http://www.somesite.com/test/" rel="nofollow">http://www.somesite.com/test/</a></li>
<li>$Elements[2] contains: sometext</li>
<li>$Row["povezava"] contains: sometext2</li>
</ol>

<p>All variables have nothing but letters in them.</p>

<p>Now my problem.
If I try to echo the following I get:</p>

<pre><code>// I'm missing "sometext":
http://www.somesite.com/test/sometext2
// Should be like this:
http://www.somesite.com/test/sometext/sometext2
</code></pre>

<p>If I do print_r($Elements) I can see that $Elements[2] is "sometext".</p>

<p>Why can't I echo $Elements[2] along with a few other variables???</p>

<p>edit: more code!</p>

<pre><code>$Website = 'http://' . $_SERVER["SERVER_NAME"] . '/' . $Elements[1] . '/';

function ShowMenuOfParent($Parent, $Spacing) {
    $Query = mysql_query("SELECT * FROM `izdelki_meni` WHERE `stars` = '$Parent';");
    if(mysql_num_rows($Query) != 0) {
        while($Row = mysql_fetch_array($Query)) {
            $s = '&lt;li&gt;&lt;a href="'.$Website.$Elements[2].'/'.$Row["povezava"].'" class="leftMenuArticlesInactive"&gt;';
            for($i = 0; $i &lt; $Spacing;$i++) {
                $s .= '&amp;nbsp;';
            }
            $s .= $Row["ime"].'&lt;/a&gt;&lt;/li&gt;';
            echo $s;
            ShowMenuOfParent($Row["id"], $Spacing + 8);
        }
    }
}

$Query = mysql_query("SELECT * FROM `izdelki_meni` WHERE `stars` = 0;");
if(mysql_num_rows($Query) != 0) {
    echo '&lt;ul&gt;';
    while($Row = mysql_fetch_array($Query)) {
        echo '&lt;li&gt;&lt;a href="'.$Website.$Row["povezava"].'" class="leftMenuArticlesActive"&gt;'.$Row["ime"].'&lt;/a&gt;&lt;/li&gt;';
        if($Elements[2] == $Row["povezava"]) {
            ShowMenuOfParent($Row["id"], 8);
        }
    }
    echo '&lt;/ul&gt;';
}
</code></pre>
