get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$id' AND comment_approved = '1' ORDER BY comment_date"); $comments = array_slice($comments, $start, $number); $GLOBALS['comments_reply'] = array(); function write_comment(&$c, $deep_id = -1, $color = true) { global $max_level; $comments_reply = $GLOBALS['comments_reply']; if ($c->comment_author_email== get_the_author_email()) $style = ' class="mine"'; else if ($color==true){$style=' class="borderc1"';$color=!$color;} else{$style=' class="borderc2"';$color=!$color;} ?>