Reply to Re: How to create html list from such array ?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация