magnus_sylvania Posted May 7, 2010 Share Posted May 7, 2010 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 More sharing options...
Guest Posted May 9, 2010 Share Posted May 9, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.