connect( $db_host, $db_user, $db_pass, $db_db ) ; //echo mysql_error() ; $baza->debug = 1; echo '/* css */' ; $baza->query( "select nazwa, tekst, id_grupy from css_selektor" ) ; while( $row = $baza->get_array() ) { $tab[$row['id_grupy']][] = $row ; } $baza->query( "select * from css_grupa where aktywny = 1 order by kolejnosc" ) ; while( $row = $baza->get_array() ) { foreach( $tab[$row['id']] as $key => $row2 ) { echo $row2['nazwa'].' {'."\r\n".$row2['tekst']."\r\n".'}'."\r\n\r\n" ; } } //phpinfo() ; ob_end_flush() ; ?>