below is script for count comments. This worked but now I want when the comment 0, it just show comment, not 0 comment.
Any suggestions ?
<?php
include "con_config_hapshout.php";
$query3 = "SELECT COUNT(comment) FROM comment WHERE msg_id='$id'";
$result3 = mysql_query($query3);
while($total = mysql_fetch_array($result3)){
echo "$total['COUNT(comment)'] comment";
}
?>
1 Answer