lingo5 Posted December 23, 2011 Share Posted December 23, 2011 Hi, I am trying to append a language session like this: $ATC_itemWeight = floatval("".$row_productos_RS['capacidad_'.$_SESSION['session_idioma'].'']; but I get this error Parse error: syntax error, unexpected ';' in /usr/home/mysite.com/web/productos_esp.php on line 121 what am I doing wrong? Thanks Link to comment https://forums.phpfreaks.com/topic/253766-please-help-with-language-session/ Share on other sites More sharing options...
SergeiSS Posted December 23, 2011 Share Posted December 23, 2011 You forget ')' at the end. And.... Why do you add 2 empty strings - one in the beginning and other at the end? You don't need it. Just write the variable without these empty strings. Link to comment https://forums.phpfreaks.com/topic/253766-please-help-with-language-session/#findComment-1300955 Share on other sites More sharing options...
lingo5 Posted December 23, 2011 Author Share Posted December 23, 2011 Thanks Sergeiss...I think I'm too tired now...I'm more stupid than usual... Link to comment https://forums.phpfreaks.com/topic/253766-please-help-with-language-session/#findComment-1300960 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.