Page 1 of 1

Comments - Tiny change in action.count_comments.php

Posted: Mon Nov 24, 2008 9:34 am
by Cygnus
Hi everbody,

I juste replace

Code: Select all

echo $num_rows;

with

Code: Select all

if ($num_rows == 0) {
  echo "no comment";
}
elseif ($num_rows == 1) {
  echo "$num_rows comment";
}
else { 
  echo "$num_rows comments";
}
at the end of the file.

My 20 cents.

Re: Comments - Tiny change in action.count_comments.php

Posted: Thu Jul 02, 2009 3:50 am
by inyerface
For what outcome?  I'm sure it's great and me search for "Comment count" returned this post. So what does it do exactly?