답변 2개 / 댓글 2개
$sql = " select wr_name, wr_content from $write_table where wr_parent='{$list[$i][wr_id]}' and wr_is_comment = 1 order by wr_datetime desc limit 5";
$result = sql_query($sql);
while ($row = sql_fetch_array($result))
{
echo $row[wr_name].' / ';
if($row[wr_content]) $comment=cut_str($row[wr_content],40);
else $comment=' ';
echo $comment;
}
답변에 대한 댓글 1개
$row=sql_fetch("select wr_name, wr_content from $write_table where wr_parent='{$list[$i][wr_id]}' and rownum <= 5 order by wr_datetime desc");
이렇게 수정해보세요.
답변에 대한 댓글 1개
그런데 출력이 안되네요 ㅠ ㅠ
아무튼 답변 감사합니다~
답변을 작성하려면 로그인이 필요합니다.
알려주신대로 했더니 출력이 되네요!!
며칠 동안 고민한건데 덕분에 해결되었어요!
감사합니다~~~