Re: How to create html list from such array ?
- From: Ivan Omelchenko 608308824 <news@xxxxxxxxxxxxxx>
- Date: Mon, 30 May 2005 15:30:37 +0300
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) .
- Follow-Ups:
- References:
- How to create html list from such array ?
- From: lp
- Re: How to create html list from such array ?
- From: Ivan Omelchenko 608308824
- Re: How to create html list from such array ?
- From: lp
- How to create html list from such array ?
- Prev by Date: Re: How to create html list from such array ?
- Next by Date: Re: Opnion needed on image manipulation (not neccesarilly PHP)
- Previous by thread: Re: How to create html list from such array ?
- Next by thread: Re: How to create html list from such array ?
- Index(es):
Relevant Pages
|