SORRY i just coppied it wrong
the actual code is capitalized

while(list($k, $v) = each($HTTP_SESSION_VARS))


----- Original Message -----
From: "Faisal Nasim" <[EMAIL PROTECTED]>
To: "Jon Yaggie" <[EMAIL PROTECTED]>
Sent: Thursday, August 02, 2001 12:23 AM
Subject: Re: [PHP] HTTP_SESSION_VARS


> Make session capital!
>
> $HTTP_SESSION_VARS instead of $HTTP_session_VARS
>
> Might also use:
>
> foreach ( $HTTP_SESSION_VARS as $k => $v )
> {
>   // etc
> }
>
> Faisal Nasim
> FreeWebWare.com
>
> At 12:17 AM 8/2/2001 +0700, you wrote:
> >when i try this then   .. . .
> >
> >
> >
> >while (list ($key, $val) = each ($HTTP_session_VARS)) {
> >     echo "$key => $val<br>";
> >}
> >
> >i get the error -
> >
> >Warning: Variable passed to each() is not an array or object in
> >/var/www/html/adult/func.php on line 5
> >
> >and well it looks liek an array to me . . is there soemthing i can do to
> >make this work?
> >
> >
> >
> >Thank You,
> >
> >Jon Yaggie
> >www.design-monster.com
> >
> >And they were singing . . .
> >
> >'100 little bugs in the code
> >100 bugs in the code
> >fix one bug, compile it again
> >101 little bugs in the code
> >
> >101 little bugs in the code . . .'
> >
> >And it continued until they reached 0


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to