Welcome Guest, Not a member yet? Register   Sign In
Parse error: syntax error, unexpected T_ECHO
#2

[eluser]jmadsen[/eluser]
Thank you for moving your question over here.

CodeIgniter syntax is php syntax; you need to do things in the same way.

Code:
&lt;?php '<a class="current">destino;'>' echo $menue->nombre_enc; '</a>' ?&gt;

should read:

Code:
&lt;?php echo '<a class="current">' . $menue->nombre_enc . '</a>'; ?&gt;

I don't understand "destino" - is this the href="" part, and does it come from your database?

Grrr..the forum is making a mess of the html code!!

If $menue->destino is your href, then use:

Code:
href="    "
... put
Code:
'.$menue->destino.'
inside the quotes

----

Here are some more resources for understanding "concatenation":

An easy to read tutorial:
http://phphowto.blogspot.com/2006/12/con...rings.html

The manual:
http://php.net/manual/en/language.operators.string.php


Messages In This Thread
Parse error: syntax error, unexpected T_ECHO - by El Forum - 07-10-2011, 04:54 PM
Parse error: syntax error, unexpected T_ECHO - by El Forum - 07-10-2011, 05:10 PM
Parse error: syntax error, unexpected T_ECHO - by El Forum - 07-11-2011, 01:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB