Jump to content

Recommended Posts

I am using the following script:
[code]
<?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>[/code]

And I get the following error:
[quote]
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[/quote]

Why is this?
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.