Jump to content

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


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. 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.