$lib = array( 'html' => '', 'px' => 200 ); $sp = mysql_query('SELECT * FROM `library_menu` WHERE `delete` = 0 ORDER BY `position` ASC'); while($pl = mysql_fetch_array($sp)) { if( $pl['type'] == 0 ) { $lib['html'] .= ''.$pl['name'].''; $lib['px'] += 33; }else{ $lib['html'] .= '• '.$pl['name'].''; $lib['px'] += 23; } } ?>