tried that:
$data = mysql_query("SELECT * FROM users WHERE userid = '".$_SESSION['SESS_USERID']."'")) or die(mysql_error());
$usr = mysql_fetch_array( $data );
and got this parse error:
Parse error: parse error in C:\wamp\www\hero\game\includes\config.php on line 43
which is clean
function clean($str)
{
if (is_numeric($str)) $str=floor($str);
$cleaned=strip_tags($str);
$cleaned=htmlspecialchars($cleaned);
$cleaned=mysql_real_escape_string($cleaned);
$to_clean=array("%20", "\"", "'", "\\", "=", ";", ":"); <-- 43
$cleaned=str_replace($to_clean, "", $cleaned);
return $cleaned;
}