첨부 그림파일을 원본이미지 사이즈로 보여주기 정보
첨부 그림파일을 원본이미지 사이즈로 보여주기본문
$sql = mysql_query(" select * from g4_board_file ");
for ($i=0; $row=mysql_fetch_array($sql); $i++) {
echo "<img src='$g4[path]/data/file/$row[bo_table]/$row[bf_file]' width=200>";
}
원본 첨부파일로 불러오긴 하는데요...
기냥 모두를 불러오네요...^^*
제가 원하는건 첨부파일1번만 불러오는건데...
^^* 도와주세요~~
for ($i=0; $row=mysql_fetch_array($sql); $i++) {
echo "<img src='$g4[path]/data/file/$row[bo_table]/$row[bf_file]' width=200>";
}
원본 첨부파일로 불러오긴 하는데요...
기냥 모두를 불러오네요...^^*
제가 원하는건 첨부파일1번만 불러오는건데...
^^* 도와주세요~~
댓글 전체
for ($i=0; $row=mysql_fetch_array($sql); $i++) {
echo "<img src='$g4[path]/data/file/$row[bo_table]/$row[bf_file]' width=200>";
}
를
$row=mysql_fetch_array($sql);
echo "<img src='$g4[path]/data/file/$row[bo_table]/$row[bf_file]' width=200>";
로
echo "<img src='$g4[path]/data/file/$row[bo_table]/$row[bf_file]' width=200>";
}
를
$row=mysql_fetch_array($sql);
echo "<img src='$g4[path]/data/file/$row[bo_table]/$row[bf_file]' width=200>";
로
이렇게 하니
ONLY 1개 맨앞에것만 나오네요...ㅠㅠ
ONLY 1개 맨앞에것만 나오네요...ㅠㅠ