Variable problem in safar and google chrome but not firefox

Hi im trying to get a variable from the database works fine in firefox and ie but wont work using safari or google chrome.
could someone have a look at my code to see what wrong.
here is the code.
the variable im trying get from the database is $lang.
require(‘language/’.$lang.‘/language.php’);

    $idq = mysql_query("select GUID, banned, gID, vID,lang,flag from " . DB_PLAYERS . " where username = '" . $plyrname . "' and GUID = '" . $SGUID . "' ");
    $idr = mysql_fetch_array($idq);
    $gID = $idr['gID'];
	$lang = $idr['lang'];
	$flag = $idr['flag'];
    $gameID = $idr['vID'];
	echo $lang;
    if ((mysql_num_rows($idq) == 1) && ($idr['banned'] != 1)) $valid = true;
    $siteadmin = ADMIN_USERS;
    if ($plyrname != '') {
        $time = time();
        $admins = array();
        $adminraw = explode(',', $siteadmin);
        $i = 0;
        while ($adminraw[$i] != '') {
            $admins[$i] = $adminraw[$i];
            $i++;
        } 
        if (in_array($plyrname, $admins)) $ADMIN = true;
    } 
} 
require('poker_inc.php');
require('language/'.$lang.'/language.php');

Where do $plyrname and $SGUID come from? Are you sure they have the right value? Try echoing them.

And just to be sure, what does “won’t work” mean?