'; $i = 2; while( $row = mysql_fetch_array($wykonanie, MYSQL_ASSOC) ) { // usuwamy ukośniki $row['topic_title'] = stripslashes($row['topic_title']); $row['username'] = stripslashes($row['username']); // ucinamy przydługie tematy $row['topictitle'] = ( strlen($row['topic_title']) > 26 ) ? substr($row['topic_title'], 0, 23) . "..." : $row['topictitle']; // dobieramy kolor wiersza $i % 2 == 1 ? $r = '' : $r = ' bgcolor=""'; // ustawiamy format daty $data = date("d-m-Y H:i", $row['post_time']); // link do ostatniego postu w temacie $p = 'p=' . $row['topic_last_post_id'] . '#' . $row['topic_last_post_id']; // link do tematu $t = 't=' . $row['topic_id']; echo' ' . $row['topic_title'] . ' '; $i++; } echo ''; mysql_close() ?>