Jump to content

Please help with syntax


lingo5

Recommended Posts

Hi,

I have this as part of my shopping basket:

$ATC_itemDescription = "".$row_productos_RS['color_eng']  ."";

and I want to replace the _eng bit with my language session like this:

$ATC_itemDescription = "".$row_productos_RS['color_<?php echo ($_SESSION['session_idioma']);?>']  ."";

but t doesn't work...I getthe following error

Parse error: syntax error, unexpected T_STRING, expecting ']' in /usr/home/web/productos.php on line 162

Please help. Thanks

Link to comment
https://forums.phpfreaks.com/topic/250886-please-help-with-syntax/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.