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. Quote Link to comment Share on other sites More sharing options...
WebStyles Posted July 2, 2011 Share Posted July 2, 2011 <?php echo $row['description_'.$home_language]; ?> Quote Link to comment Share on other sites More sharing options...
regoch Posted July 2, 2011 Author Share Posted July 2, 2011 Beginner mistake! Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.