Jump to content


Photo

Unknown: Your script possibly relies on a session side-effect...


  • Please log in to reply
1 reply to this topic

#1 cameeob2003

cameeob2003
  • Members
  • PipPipPip
  • Advanced Member
  • 79 posts

Posted 07 July 2006 - 08:46 PM

I am using the following script:
<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>n2p - Nothing to Prove</title>
<meta name="copyright" content="Copyright by psyche Design - All rights reserved." />
<meta name="page-type" content="Info" />
<link rel="stylesheet" href="n2p.css" type="text/css" />
</head>
<body>
<?php
include("db.php");

$sql = "SELECT * FROM `users` order by `username`";
	$result  = mysql_query($sql) or die(mysql_error());
	while ($text = mysql_Fetch_array($result)) {
		$access = $text['access'];
		$handle = $text['handle'];
	}
	echo '<font id=UserNameBlue />User Panel<br/><br/>';
	
	if($access == "0"){
		echo "<font id=UserPanelText />Account Settings<br/>
		<font id=UserPanelText />User Profile<br/>
		<font id=UserPanelText />Mailbox<br/><br/>
		<font id=UserPanelText />Make Donation<br/>";
		}
	if($access == "1"){
		echo "<font id=UserPanelText />Account Settings<br/>
		<font id=UserPanelText />User Profile<br/>
		<font id=UserPanelText />Mailbox<br/>
		<font id=UserPanelText />Edit Media<br/>";
		}
	if($access == "2"){
		echo "<font id=UserPanelText />Account Settings<br/>
		<font id=UserPanelText />User Profile<br/>
		<font id=UserPanelText />Mailbox<br/>
		<font id=UserPanelText />Edit Media<br/>
		<font id=UserPanelText />Edit Matches<br/>";
		}
	if($access == "3"){
		echo "<font id=UserPanelText />Account Settings<br/>
		<font id=UserPanelText />User Profile<br/>
		<font id=UserPanelText />Mailbox<br/>
		<font id=UserPanelText />Edit Media<br/>
		<font id=UserPanelText />Edit Matches<br/>
		<font id=UserPanelText />Edit Forums<br/>";
		}
	if($access == "4"){
		echo "<font id=UserPanelText />Account Settings<br/>
		<font id=UserPanelText />User Profile<br/>
		<font id=UserPanelText />Mailbox<br/>
		<font id=UserPanelText />Edit Media<br/>
		<font id=UserPanelText />Edit Matches<br/>
		<font id=UserPanelText />Edit Forums<br/>
		<font id=UserPanelText />Edit Sponsors<br/>";
		}
	if($access == "5"){
		echo "<font id=UserPanelText />Account Settings<br/>
		<font id=UserPanelText />User Profile<br/>
		<font id=UserPanelText />Mailbox<br/>
		<font id=UserPanelText />Edit Media<br/>
		<font id=UserPanelText />Edit Matches<br/>
		<font id=UserPanelText />Edit Forums<br/>
		<font id=UserPanelText />Edit Sponsors<br/>
		<font id=UserPanelText />Edit Proshop<br/>";
		}
	if($access == "6"){
		echo "<font id=UserPanelText />Account Settings<br/>
		<font id=UserPanelText />User Profile<br/>
		<font id=UserPanelText />Mailbox<br/>
		<font id=UserPanelText />Edit Media<br/>
		<font id=UserPanelText />Edit Matches<br/>
		<font id=UserPanelText />Edit Forums<br/>
		<font id=UserPanelText />Edit Sponsors<br/>
		<font id=UserPanelText />Edit Proshop<br/>
		<font id=UserPanelText />Edit Roster<br/>";
		}
?>
</body>
</html>

And I get the following error:

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


Why is this?

#2 radox

radox
  • Members
  • PipPipPip
  • Advanced Member
  • 31 posts

Posted 08 July 2006 - 03:42 AM

show your script that sets the session variable




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users