Re: [PHP] store array into session variable and get it back later

2008-10-02 Thread Stut
On 1 Oct 2008, at 20:42, Per Jessen wrote: Stut wrote: On 1 Oct 2008, at 11:40, Per Jessen wrote: Alain Roger wrote: how can i get the 'name' value for each row in this session stored array ? thx. You haven't stored an array in the session, you've tried to store an object of class CBreadcru

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Per Jessen
Stut wrote: > On 1 Oct 2008, at 11:40, Per Jessen wrote: > >> Alain Roger wrote: >> >>> how can i get the 'name' value for each row in this session stored >>> array ? thx. >> >> You haven't stored an array in the session, you've tried to store an >> object of class CBreadcrumb. Which AFAIK isn't

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Larry Brown
how about: $bci = $_SESSION['bc']; foreach($bci->crumb as myCrumb) { echo "value['name'] :".$myCrumb['name'].""; echo "value['link'] :".$myCrumb['link'].""; echo "value['id'] : ".$myCrumb['id'].""; } You are wanting to loop through the crumbs rather than looping objects. There is onl

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Thodoris
This is what i did afterall, but when i unserialize it like this way: $bci = unserialize($_SESSION['bc']); foreach($bci as $key=>$value) { echo "bci : ".$key; echo ""; } i get absolutely the same result as the code below. in fact $key returns me the 2 variables memb

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Alain Roger
> > >> later on i try to use the content of this array, bt without success. >>> Here is what i do: >>> >>> $bci = array($_SESSION['bc']); >>> array_push($bci,$_SESSION['bc']); foreach($bci as $key=>$value) { echo "bci : ".$bci[$key]['name']; echo ""; } >>>

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Alain Roger
On Wed, Oct 1, 2008 at 2:43 PM, Frank Arensmeier <[EMAIL PROTECTED]> wrote: > 1 okt 2008 kl. 12.31 skrev Alain Roger: > > ... > >> >>> > later on i try to use the content of this array, bt without success. >> Here is what i do: >> >> $bci = array($_SESSION['bc']); >> >>> array_push($bci,$_SESSION

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Frank Arensmeier
1 okt 2008 kl. 12.31 skrev Alain Roger: ... later on i try to use the content of this array, bt without success. Here is what i do: $bci = array($_SESSION['bc']); array_push($bci,$_SESSION['bc']); foreach($bci as $key=>$value) { echo "bci : ".$bci[$key]['name']; echo ""; } how can i

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Stut
On 1 Oct 2008, at 11:40, Per Jessen wrote: Alain Roger wrote: how can i get the 'name' value for each row in this session stored array ? thx. You haven't stored an array in the session, you've tried to store an object of class CBreadcrumb. Which AFAIK isn't supported. It is supported but y

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Per Jessen
Alain Roger wrote: > how can i get the 'name' value for each row in this session stored > array ? thx. You haven't stored an array in the session, you've tried to store an object of class CBreadcrumb. Which AFAIK isn't supported. /Per Jessen, Zürich -- PHP General Mailing List (http://www.p