Jump to content

Multi Language problem


Bygman

Recommended Posts

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

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.