파일#1 뒤에붙는글자 수정법좀알려주세요
본문
답변 4
해당게시판의 스킨 안에 write.skin.php에서
<th scope="row">파일 #<?php echo $i+1 ?></th>를 아래와 같이 수정하세요
<?php for ($i=0; $is_file && $i<$file_count; $i++) {
switch($i){
case '0': $file_str = "원하는이름"; break;
case '1': $file_str = "원하는이름"; break;
case '2': $file_str = "원하는이름"; break;
case '3': $file_str = "원하는이름"; break;
case '4': $file_str = "원하는이름"; break;
.......
}
?>
<th scope="row">파일 #<?php echo $file_str; ?></th>
오류뜨는데요 여기서어떻게해야되나요?
<?php for ($i=0; $is_file && $i<$file_count; $i++) {
?>
<div class="form-group">
<label class="col-sm-2 control-label">파일1#<?php echo $i; ?></label>
<th scope="row">파일 #<?php echo $file_str; ?></th>
<th scope="row">파일 #<?php echo $file_str; ?></th> 라인 대신에 아래처럼
<?php
switch($i){
case '0': $file_str = "원하는이름"; break;
case '1': $file_str = "원하는이름"; break;
case '2': $file_str = "원하는이름"; break;
case '3': $file_str = "원하는이름"; break;
case '4': $file_str = "원하는이름"; break;
원하는 갯수만큼 늘려주세요
}
?>
<th scope="row">파일 #<?php echo $file_str; ?></th>