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 Quote 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. Quote 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... Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.