- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
function buildKust( $queryId )
{
$commentQuery = getElementsBy('queryncomment', 'query', $queryId);
IF($commentQuery)
foreach($commentQuery as $key=>$CQ)
{
$query = mysql_query("SELECT * FROM comments WHERE lev = 0 AND id = '".$CQ['comment']."' ");
while($comment = mysql_fetch_array($query))
$nullLevel[] = $comment;
}
IF($nullLevel)
foreach($nullLevel as $key=>$nullComment)
{
$nullComment['level'] = 0;
$brunch[0] = $nullComment;
$kust[] = getChildren($nullComment,$brunch, 1);
}
return $kust;
}
Мистер Хэнки 12.03.2011 14:05 # 0
bugmenot 12.03.2011 14:49 # 0
guest 21.01.2017 09:09 # 0