CODE FOLLOWS THIS LINE:
" . $textarray[2] . "
" . $textarray[3]; $commenttext = str_replace("
", "", $commenttext); } else { $commenttext = "$commenttext"; } return $commenttext; } function printComments( $nid, $start, $breakimg, $shownext, $interval ) { echo"
"; $data = grabComments( $nid, $start, $interval ); $cnumrows = $data[0]; if( $shownext ) { $end = $start + $interval; //echo $start; if( $end < $cnumrows ) { $nstart = $end; $nend = $nstart + $interval; echo "[ Next $interval ]"; } echo " "; if( $end > $interval ) { $ostart = $start - $interval; $oend = $end - $interval; echo "[ Previous $interval ] "; } } $cresult = $data[1]; while( $comment = mysql_fetch_array( $cresult ) ) { $cdate = $comment['date']; $cname = $comment['name']; $ctext = $comment['comment']; $ctext = htmlentities($ctext); $ctext = str_replace("\n", "
", $ctext); $ctext = parseComments( $ctext ); $csite = $comment['website']; if( strlen( $csite ) == 0 ) { $csite = $MAINURL; } echo"

$cname Posted at $cdate CST

$ctext

\"<hr\" title=\"Post break\" height=\"2px\"width=\"100%\" /> "; } echo"

"; } ?>