<?
for($i=0;$i<count($list);$i++){
$sql="SELECT * FROM g4_board_file where bo_table='01_board' and wr_id='{$list[$i][wr_id]}' order by bf_no=1 desc ";
//echo $sql;
//exit;
$result = sql_query($sql);
$row= sql_fetch_array($result);
?>
<li><img src="/data/file/01_board/<?=$row['bf_file']?>" onerror="this.src='/images/noimage.gif'"
게시물마다 다른 이미지여야 하는데.. 하나만 나오네요..
|
답변 1개 / 댓글 4개
채택된 답변
+20 포인트
by bf_no=1 desc 이부분이
첫번째파일이 no1이고 두번째면 by bf_no=2 desc 로 해야하지 않을까요?
답변에 대한 댓글 4개
답변을 작성하려면 로그인이 필요합니다.