regoch Posted July 2, 2011 Share Posted July 2, 2011 I got mysql table with fields: description_hr, description_en, description_de (for croatian, english and german language) and got switch language script and I wonna to get from table description for each language as I change language. I try with this code but not working. <?php echo $row['description_'.$home_language.'.']; ?> $home_language write code for language as i change it: hr, en, de. Link to comment https://forums.phpfreaks.com/topic/240945-language-switch-problem/ Share on other sites More sharing options...
WebStyles Posted July 2, 2011 Share Posted July 2, 2011 <?php echo $row['description_'.$home_language]; ?> Link to comment https://forums.phpfreaks.com/topic/240945-language-switch-problem/#findComment-1237616 Share on other sites More sharing options...
regoch Posted July 2, 2011 Author Share Posted July 2, 2011 Beginner mistake! Thanks! Link to comment https://forums.phpfreaks.com/topic/240945-language-switch-problem/#findComment-1237621 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.