Two problems in your code:
1)
for($i=0;$i<$wordnum;$i++)
{
$re_string=" ".$string_arr[$i];
}
Should be
for($i=0;$i<$wordnum;$i++)
{
$re_string .= " ".$string_arr[$i];
}
Notice it's .= rather than =. You want to add to what you had already.
2)
cut_string($row["comment"],"1/10","<a
href=\"full_summ.php?id=$row[id]\"> Read More>>></a>");
should just be
cut_string($row["comment"],10,"<a href=\"full_summ.php?id=$row[id]\">
Read More>>></a>");
You're not using the 1 anywhere, and it can only confuse your for
loop. Now it's also an integer, not a string.
paul