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
Warning: Unknown()
Moderator: General Moderators
Warning: Unknown()
What does this mean?
It started since I defined a new session variable which I use for my delete page.
Then what I do is a redirect to the admin page with a certain query string that includes that "teamid".
Code: Select all
$_SESSION['teamid'] = $row['teamid'];Code: Select all
$url .= '/teams_admin.php?team=' . $_SESSION['teamid'];
header("Location: $url");
$_SESSION['teamid'] = null;
exit();Fixed!
it's because I am using a session variable in a query string. I created a variable with same value as session variable and works.
it's because I am using a session variable in a query string. I created a variable with same value as session variable and works.
Code: Select all
$teamid = $_SESSION['teamid'];
$url .= '/teams_admin.php?team=' . $teamid;