Re: Re: SESSION array problems
| From: | Ashley Sheridan | Date: | Wed, 01 Oct 2008 19:49:37 +0000 |
| Subject: | Re: Re: SESSION array problems | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281329@lists.php.net to get a copy of this message | ||
On Wed, 2008-10-01 at 15:41 -0400, tedd wrote:
> >What about:
> >
> >foreach ($_SESSION['user_id'] as $key => $value)
> >{
> > $last = $_SESSION['last_name'][$key];
> > $first = $_SESSION['first_name'][$key];
> > echo "$last, $first";
> >}
>
> Jay:
>
> Close, it produced:
>
> Array, Array
> Array, Array
> Array, Array
>
> Cheers,
>
> tedd
> --
> -------
> http://sperling.com
> http://ancientstones.com
> http://earthstones.com
>
That would suggest there's another level to the $_SESSION array. Are you
sure the data output from the print_r is right and nothing is acting on
it before your loop?
Ash
www.ashleysheridan.co.uk