Jump to content

Language switch problem


regoch

Recommended Posts

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

Archived

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

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