Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Possible to get a TXT_STRING in database and echo language file?

Recommended Posts

I have a extra filed in the database(eg. extrafiled_sample) where I want to add a text string like: TEXT_SAMPLE


I want to ECHO the value like <?php echo $extrafield_sample;?> no problem - gets TEXT_SAMPLE on the screen.

But I want to get TEXT_SAMPLE from the language file.

In the language file I have define('TEXT_SAMPLE','This is a sample text');'


So I want the result echo = This is a sample text.

Link to comment
Share on other sites

It seems to me, if you are defining the text string in the language files anyway, why not simply <?php echo TEXT_SAMPLE; ?>

using the database entry just seems like an extra step that isn't required, or maybe I'm not getting it?

Link to comment
Share on other sites


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

  • Create New...