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
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
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
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
>
>
>> 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 "";
}
>>>
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
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
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
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
9 matches
Mail list logo