답변 1개
채택된 답변
+20 포인트
Copy
<?php
$sql = "
select bo_table, bf_file
from g5_board_file
where bo_table = 'member_program'
and wr_id in (2, 3)
order by wr_id, bf_no
";
$result = sql_query($sql);
while ($row = sql_fetch_array($result) {
$src = '/data/file/' . $row['bo_table'] . '/' . $row['bf_file'];
echo '<img src="' . $src . '">';
}
?>
답변을 작성하려면 로그인이 필요합니다.
