'', 'px' => 200 ); $rz = 1; if( $url[2] > 0 ) { $rz = $url[2]; } $rz2 = 0; if( $url[3] > 0 ) { $rz2 = $url[3]; } $sp = mysql_query('SELECT * FROM `forum_menu` WHERE `parent` = "0" ORDER BY `id` ASC'); while($pl = mysql_fetch_array($sp)) { if( $rz == $pl['id'] && $rz2 == 0 ) { $frm['html'] .= '«'.$pl['name'].'»'; }else{ $frm['html'] .= '«'.$pl['name'].'»'; } $sp2 = mysql_query('SELECT * FROM `forum_menu` WHERE `parent` = "'.$pl['id'].'" ORDER BY `id` ASC'); while($pl2 = mysql_fetch_array($sp2)) { $pl2['name'] = '> '.$pl2['name'].''; if( $rz2 == $pl2['id'] ) { $frm['html'] .= ''.$pl2['name'].''; }else{ $frm['html'] .= ''.$pl2['name'].''; } $frm['px'] += 23; } $frm['px'] += 23; } ?>