리스트상에서 1번 코멘트의 날짜를 출력하는거좀 알려주세요~~~
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 6개
$row=sql_fetch($sql);
echo $row[wr_datetime];
다른 방법이 없을까요?
쿼리문만 올려 드렸는데 어떻게 적용하셨는지 궁금하네요
<td class="name">
<? if($list[$i][comment_cnt]) { ?>
<b>완료</b>
<br />
<?
$sql = " select * from $g4[write_prefix]$bo_table where wr_parent = '$list[$i][wr_id]' and wr_is_comment = 1 order by wr_comment, wr_comment_reply ";
$row=sql_fetch($sql);
echo $row[wr_datetime];
?>
<? } else { ?>
대기
<? } ?>
</td>
이렇게 사용하려고 하는데 아무리 머리를 싸메고 연구해봐도 안되고 있네요..
$sql = " select * from $g4[write_prefix]$bo_table where wr_parent = '{$list[$i][wr_id]}' and wr_is_comment = 1 order by wr_comment, wr_comment_reply ";
중괄호 넣어 주세요~^^
어제부터 이거랑 씨름했는데 원인이 {} 였네요..;.
감사합니다..