Bygman Posted June 18, 2008 Share Posted June 18, 2008 Hi all, have some lang files in folde "languages" calls "GB" "NL", GB is standart language all works ok if user is login, but is if user is not login he will get the " .HOME. " from the language file if($plyr){ { $lng_a = @mysql_fetch_array(@mysql_query("select country from users where id=" . $plyr["id"])); if ($lng_a) $lang_country = $lng_a["country"]; } if (!$lang_country) { ($z = mysql_query("SELECT country FROM users WHERE id=GB")) or die(mysql_error()); ($b = mysql_fetch_array($z)) or die(mysql_error()); $lang_country = $b["country"]; } require_once("languages/" . $lang_country . ""); } if you can help me that would be great sorry for my english cheers, Bygman Link to comment https://forums.phpfreaks.com/topic/110823-multi-language-problem/ Share on other sites More sharing options...
Bygman Posted June 23, 2008 Author Share Posted June 23, 2008 [sOLVED] Link to comment https://forums.phpfreaks.com/topic/110823-multi-language-problem/#findComment-572544 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.