I keep getting this error in a rank.php that doesnt contain any sessions, i found the problem in config.php but i know its correct so whats the problem. I dnt think that i have to register like $_SESSION as the browser should recognize it. ive used it on other sites and it works fine so i dnt see the problem!
Error:
PHP Code:
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
Code I Took Out:
PHP Code:
$sql = mysql_fetch_array(mysql_query("SELECT * FROM `championship__login` WHERE `username` = '" . $_SESSION['loggedin'] . "'")); $_SESSION['id'] = $sql['id']; $_SESSION['userlevel'] = $sql['userlevel']; $_SESSION['money'] = $sql['money']; $_SESSION['transfers'] = $sql['transfers']; $_SESSION['team_name'] = $sql['team_name']; $_SESSION['date'] = $sql['date']; $_SESSION['logo'] = $sql['logo']; $_SESSION['monthly_points'] = $sql['monthly_points']; $_SESSION['points'] = $sql['points']; $_SESSION['comment'] = $sql['comment']; $_SESSION['rank'] = $sql['rank']; $_SESSION['last_rank'] = $sql['last_rank'];
Last edited by evans123 : 11-19-2007 at 03:43 PM.
|