Parse error: syntax error, unexpected T_ECHO |
[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: <?php '<a class="current">destino;'>' echo $menue->nombre_enc; '</a>' ?> should read: Code: <?php echo '<a class="current">' . $menue->nombre_enc . '</a>'; ?> 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=" " Code: '.$menue->destino.' ---- 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
|