Anche cambiando struttura il risultato non cambia, ho appena provato così:
codice:
<?php $num = 0;
$c_like_query = mysql_query("select `id` FROM `comment`", $connection) or die ("unable to connect" . mysql_error());
$some = mysql_fetch_array($c_like_query);
while($some) { $num = $num + 1; } ?>
<?php while($comment = mysql_fetch_array($comment_query)): ?>
<div class="comment-item">
<div class="comment-post">
<h3><?php echo $comment['name'] ?><span>
<form method="post" action="index.php">
<h6>0</h6>
<submit value="<?php echo $num ?>" name="hide" type="hidden"></submit>
<submit value="+" class="like2" name="like">+</submit>
<submit value="-" class="unlike" name="unlike">-</submit>
</form>
</span>
</h3>
<p><?php echo $comment['comment']?></p>
</div>
</div>
<?php endwhile?>