|
Posted by Ivan Omelchenko 608308824 on 11/08/37 11:17
lp пишет:
> Ivan Omelchenko 608308824 wrote:
>
>>Look's like a usual tree. Try to use not array, but SQL DB, it's easy
>
>
> Sorry, but I can't use SQL here, the data deas not come from database. I've
> got only array like that which will be passed to my class.
>
> LP
>
>
more little question: is you array sorted correctly?
if your array has
$myArr = array(
array("jj", "0", "jjj"),
array("bb", "ee", "bbb"),
array("aa", "0", "fff"),
)
then HTML should be
<ul>
<li>jjj</li>
<ul>
<li>bbb</li>
</ul>
</li>
<li>fff</li>
<ul>
or it have to be
<ul>
<li>fff</li>
<li>jjj</li>
<ul>
<li>bbb</li>
</ul>
<ul>
(sorted by name of parent keys)
[Back to original message]
|