Jump to content

[SOLVED] concatenating two variable to make one name for da echo


azunoman

Recommended Posts

 

Current Display my DB column data as following:

 

echo $row_rs_ruedas['ProdName'];

 

I want to change the field name 'ProdName' by placing the language selected variable $lang so that the correct DB column data is the correct language say 'Esp'. 

 

In my DB for example I have ProdName and ProdNameEsp. 

 

I have looked into localization and will return to that but for now if I could just switch to  see eng/esp data....that be bomb for starters.

 

I know it's a novice sort of question...I am using DW CS3/siteassist and really don't have to code to much which is kinda nice as I don't go off into the woods as much...I am an old assembler 370 programmer so coding in macro language is always more of a challenge. 

 

Off:Subject

 

What would be really nice if the PHP manual and adopted BNF schemas for their documentation.  It would make it so much easier to visulaize how one could concatenate and do more complex expressions.

 

Thanks,

 

Fred

Current Display my DB column data as following:

 

echo $row_rs_ruedas['ProdName'];

 

I want to change the field name 'ProdName' by placing the language selected variable $lang so that the correct DB column data is the correct language say 'Esp'.

 

TO-->echo $row_rs_ruedas['ProdNameEsp'];  Esp would be a variable like $lang = Esp

 

In my DB for example I have ProdName and ProdNameEsp. 

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.