파일출력위치 출력 대략 난감... 정보
파일출력위치 출력 대략 난감...
본문
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
{
$images1 = $view[file][0][view];
}
}
?>
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
{
$images1 = $view[file][0][view];
}
}
?>
<?=$images1?>
업로드 된 첫번 째 파일까지는 나오는데...
그 뒷 파일 부터 문제네요. ^^
방법을 가르쳐 주세요~~~
단순히 아래처럼 무식하게 할 수는 없고... ㅡ.ㅡ;
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
{
$images1 = $view[file][0][view];
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
{
$images1 = $view[file][0][view];
$images2 = $view[file][1][view];
$images3 = $view[file][2][view];
$images4 = $view[file][3][view];
$images5 = $view[file][4][view];
}
}
?>
<?=$images1?>
게시물내용
<?=$images2?>
<?=$images3?>
하하
<?=$images4?>
<?=$images5?>
댓글 전체

이렇게 하려는 목적을 알려주시면 좋겠습니다. ㅋ
혹시 산행기나 조행기등에서
사진1
설명1
사진2
설명2
이런식으로 출력 되게 하고 싶으신가요?
혹시 산행기나 조행기등에서
사진1
설명1
사진2
설명2
이런식으로 출력 되게 하고 싶으신가요?

그냥 이미지 하나만 뒷산에 놓고
나머지 업로드 된 이미지를 전부 앞산에 놓으려고요. ^ ^;
나머지 업로드 된 이미지를 전부 앞산에 놓으려고요. ^ ^;

이렇게 해보시죠. ^^;
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
{
$images[$i] = $view[file][$i][view];
}
}
?>
<?=$images[0]?>
게시물내용
<?=$images[1]?>
<?=$images[2]?>
하하
<?=$images[3]?>
<?=$images[4]?>
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
{
$images[$i] = $view[file][$i][view];
}
}
?>
<?=$images[0]?>
게시물내용
<?=$images[1]?>
<?=$images[2]?>
하하
<?=$images[3]?>
<?=$images[4]?>