Menu
I have this code
[CODE]foreach ($result2 as $rodic1 => $rodic_hodnot1)
{
foreach ($etc_uloziste as $id => $etc_id)
{
foreach ($etc_id as $id2 => $etc_id2)
{
//echo $etc_id2.”n”;
if($rodic1 ==$id)
{
//echo $etc_id2.”n”;
}
}
}
}
where the $etc_id2 is like library or room and $id is book
[book] => Array
(
[0] => library
[1] => room
)
But problem is when i //echo $etc_id2.”n” after if($rodic1 ==$id) i get only [0] => library.
My question in here is why i cant get [1] => room . And how can i change mzý code to get it .
Thank you for read my post and help