Thanks! In fact I just updated my code to your exact example below and it
works! Its a good thing you all fixed this for me...I have very few hairs
left! Thanks again everyone...drb
On Sun, Aug 10, 2008 at 4:53 PM, Micah Gersten <[EMAIL PROTECTED]> wrote:
> There's your answer. With register_glo
There's your answer. With register_globals on $_SESSION['rights']
becomes $rights and when you do extract($row) you are overwritting the
$_SESSION variable. A safer way of using your code would be:
while ($row = mysql_fetch_array($result1, MYSQL_ASSOC))
{
?>
-
http://w
On Sun, Aug 10, 2008 at 4:23 PM, Darron Butler <[EMAIL PROTECTED]> wrote:
> Thanks for your thoughts. To answer your first question, I'm using
> extract()
> because this is a page where admins and super users can edit the
> permissions
> of others for the site. Therefore, I have to query the datab
Thanks for your thoughts. To answer your first question, I'm using extract()
because this is a page where admins and super users can edit the permissions
of others for the site. Therefore, I have to query the database to create a
listing of all users, and then have the admin/super user select one t
> Why use extract()? Try commenting it out... apart from it being
If you use 'register globals' there's a good chance that a variable
$rights exists because it's a key in your $_SESSION array (don't shoot
me if I'm wrong, I've never worked with 'register globals'). By using
extract() without the $
If it changes the value of $_SESSION['rights'], then how come
if ($_SESSION['rights'] != "super")
on line 14 doesn't exit()? Or does that happen when you hit refresh
the second time? Or does the user it changes to also have 'super'
rights?
Why use extract()? Try commenting it out... apart from it
I have built an application where users have to log in (the user data is
stored in MySQL). I have 3 levels of rights for users; 1-"normal" rights,
2-"admin" rights, and 3-"super" user rights. When a user logs in, I set the
$_SESSION['rights'] variable accordingly so I can reference it thru out the
can you post some code and give a better description than ' it doesn't work
'
bastien
From: [EMAIL PROTECTED]
To: php-db@lists.php.net (PHP)
Subject: [PHP-DB] $_SESSION
Date: Wed, 30 Mar 2005 21:41:09 +
To the Group:
Can anyone recommend a good, thorough online tutorial conc
To the Group:
Can anyone recommend a good, thorough online tutorial concerning sessions?
I'm trying to create a site that operates independently of cookies, using
$_SESSION[variables] to pass information from page to page AND avoid using the
SID in the URL.
Nothing is working the way that I
Hi all,
I have a problem: my $_SESSION variables and $_COOKIE variables get
destroyed very often, even though my clients are actively browsing the site
(that means, the variables should not be garbage collected).
Our guess is that the network connections are weak. My server is in
Singapore but m
10 matches
Mail list logo