comment as $comment) { ++$i; if( (($page-1)*$pagination) < $i && $i <= ($page*$pagination) ) { // match page number to comments we want to show $gravatar_img = 'http://www.gravatar.com/avatar/?gravatar_id='.md5(strtolower($comment->email)).'&default=monsterid&size=75'; // get gravatar img for each email echo '
Gravatar -

'; if($comment->email != "") {echo ''.htmlspecialchars($comment->name).'';} // check if author supplied email - if so, show mailto: link else { echo htmlspecialchars($comment->name); }; // else show only name echo '

'.nl2br(htmlspecialchars($comment->message)).'
' // strip HTML - but preserve line breaks .'
'; } else { if($i > ($page*$pagination)) { // add next page link (if more comments exist) echo "Newer comments »"; break; } // end next page link } } // end foreach if ($page > 1) {echo "« Older comments"; } // add link to previous pages (if not on page 1) } // end getComments ?>

Add comment



Notice: Undefined variable: counted in X:\Litebit\feedback\index.php on line 73
Comments


Fatal error: Uncaught Error: Call to undefined function getComments() in X:\Litebit\feedback\index.php:75 Stack trace: #0 {main} thrown in X:\Litebit\feedback\index.php on line 75