시도하다 하다 안되서 글 남깁니다.
이미지외 정보를 입력하면, 메인에 호출되게끔 하고싶은데..이미지를 제외하곤
나머지는 출력이 잘되는데 이미지가 호출이 안되네요...
폴더에 이미지가 저장되지도 않는거 같은데..어떻하면 될까요?
어떻게 질문해야 하며..또 어떻게 이문제를 검색해서 찾아야 할지도 막막하더군요...
도움 부탁드립니다...
이미지업로드 입력 폼
copyright_form.php----------------------------------------------------------------------------------------------------------
<?
$sub_menu = "400100";
include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
if ($is_admin != "super")
alert("최고관리자만 접근 가능합니다.");
$g4['title'] = "페이지 관리";
include_once ("$g4[admin_path]/admin.head.php");
?>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<form name=fconfigform method=post action='javascript:fconfigform_submit(document.fconfigform);'>
<tr class='ht'>
<td align=left colspan="2"><?=subtitle("페이지 관리")?></td>
</tr>
<tr><td class=line1 colspan="2"></td></tr>
<tr class='ht'>
<td width="150"><b>1.메인이미지 등록</b></td>
<td align="left" height="50">
<input name='mt_img' type=file value='<?=$mt[mt_img]?>' size=60>
<?
if ($mt[mt_img])
echo "<br><a href='$g4[path]/data/mtimg/$mt[mt_img]' target='_blank'>$mt[mt_img]</a> <input type=checkbox name='mtimg_del' value='$mt[mt_img]'> 삭제";
?>
<?=help("메인에 등록 될 이미지를 등록하세요.")?>
</td>
</tr>
<tr><td class=line1 colspan="2"></td></tr>
<tr class='ht'>
<td width="150"><b>2.메뉴꾸미기</b></td>
<td align="left" height="50">
<textarea value='<?=$mt[mt_menu]?>' name="mt_menu" style='width:100%; word-break:break-all;' rows='5' style="color:white; background-color:#333333;" geditor>
<? if ($is_dhtml_editor) echo ' geditor '; ?><?=$mt_menu?></textarea>
</textarea>
<?=help("메뉴 꾸미기, 메뉴명과 url을 입력하세요.")?>
</td>
</tr>
<tr><td class=line1 colspan="2"></td></tr>
<tr class='ht'>
<td width="150"><b>3.최상단메뉴</b></td>
<td align="left" height="50"><input type=text class=ed size='100' name='mt_topmenu' value='<?=$mt[mt_topmenu]?>'> <?=help("최상단에 들어갈 텍스트와링크를 입력하세요.")?>
</td>
</tr>
<tr><td class=line1 colspan="2"></td></tr>
<tr class='ht'>
<td width="150"><b>4.카피라이트</b></td>
<td align="left" height="50"><input type=text class=ed size='100' name='mt_copyright' value='<?=$mt[mt_copyright]?>'> <?=help("사이트 하단부에 나타날 copyright를 입력하세요.")?>
</td>
</tr>
</table>
<p align=center>
<input type=submit class=btn1 accesskey='s' value=' 확 인 '>
</form>
<script language="javascript">
function fconfigform_submit(f)
{
f.action = "./copyright_form_update.php";
f.submit();
}
</script>
<script language="JavaScript" src="<?=$g4[path]?>/geditor/geditor.js"></script>
<iframe src="<?=$g4[path]?>" frameborder="0" width="100%" height="500" marginwidth="0" marginheight="0" scrolling="auto"></iframe>
<?
include_once ("$g4[admin_path]/admin.tail.php");
?>
여러 코드를 보고 짬봉을 해서 했는데 맞는건지는 잘 모르겠네요
업로드 된 이미지 쿼리문
copyright_form.php
----------------------------------------------------------------------------------------------------------
<?
$sub_menu = "400100";
include_once("./_common.php");
$mtimg_path = "$g4[path]/data/mtimg/index";
auth_check($auth[$sub_menu], "w");
// 게시판 디렉토리 생성
@mkdir($mtimg_path, 0707);
@chmod($mtimg_path, 0707);
$file = $mtimg_path . "/index.php";
$f = @fopen($file, "w");
@fwrite($f, "");
@fclose($f);
@chmod($file, 0606);
if ($is_admin != "super")
alert("최고관리자만 접근 가능합니다.");
$sql = " update $g4[mt_table]
set mt_topmenu = '$mt_topmenu',
mt_copyright = '$mt_copyright',
mt_menu = '$mt_menu',
mt_img = '$mt_img'
";
sql_query($sql);
goto_url("./copyright_form.php");
?>
이미지외 정보를 입력하면, 메인에 호출되게끔 하고싶은데..이미지를 제외하곤
나머지는 출력이 잘되는데 이미지가 호출이 안되네요...
폴더에 이미지가 저장되지도 않는거 같은데..어떻하면 될까요?
어떻게 질문해야 하며..또 어떻게 이문제를 검색해서 찾아야 할지도 막막하더군요...
도움 부탁드립니다...
이미지업로드 입력 폼
copyright_form.php----------------------------------------------------------------------------------------------------------
<?
$sub_menu = "400100";
include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
if ($is_admin != "super")
alert("최고관리자만 접근 가능합니다.");
$g4['title'] = "페이지 관리";
include_once ("$g4[admin_path]/admin.head.php");
?>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<form name=fconfigform method=post action='javascript:fconfigform_submit(document.fconfigform);'>
<tr class='ht'>
<td align=left colspan="2"><?=subtitle("페이지 관리")?></td>
</tr>
<tr><td class=line1 colspan="2"></td></tr>
<tr class='ht'>
<td width="150"><b>1.메인이미지 등록</b></td>
<td align="left" height="50">
<input name='mt_img' type=file value='<?=$mt[mt_img]?>' size=60>
<?
if ($mt[mt_img])
echo "<br><a href='$g4[path]/data/mtimg/$mt[mt_img]' target='_blank'>$mt[mt_img]</a> <input type=checkbox name='mtimg_del' value='$mt[mt_img]'> 삭제";
?>
<?=help("메인에 등록 될 이미지를 등록하세요.")?>
</td>
</tr>
<tr><td class=line1 colspan="2"></td></tr>
<tr class='ht'>
<td width="150"><b>2.메뉴꾸미기</b></td>
<td align="left" height="50">
<textarea value='<?=$mt[mt_menu]?>' name="mt_menu" style='width:100%; word-break:break-all;' rows='5' style="color:white; background-color:#333333;" geditor>
<? if ($is_dhtml_editor) echo ' geditor '; ?><?=$mt_menu?></textarea>
</textarea>
<?=help("메뉴 꾸미기, 메뉴명과 url을 입력하세요.")?>
</td>
</tr>
<tr><td class=line1 colspan="2"></td></tr>
<tr class='ht'>
<td width="150"><b>3.최상단메뉴</b></td>
<td align="left" height="50"><input type=text class=ed size='100' name='mt_topmenu' value='<?=$mt[mt_topmenu]?>'> <?=help("최상단에 들어갈 텍스트와링크를 입력하세요.")?>
</td>
</tr>
<tr><td class=line1 colspan="2"></td></tr>
<tr class='ht'>
<td width="150"><b>4.카피라이트</b></td>
<td align="left" height="50"><input type=text class=ed size='100' name='mt_copyright' value='<?=$mt[mt_copyright]?>'> <?=help("사이트 하단부에 나타날 copyright를 입력하세요.")?>
</td>
</tr>
</table>
<p align=center>
<input type=submit class=btn1 accesskey='s' value=' 확 인 '>
</form>
<script language="javascript">
function fconfigform_submit(f)
{
f.action = "./copyright_form_update.php";
f.submit();
}
</script>
<script language="JavaScript" src="<?=$g4[path]?>/geditor/geditor.js"></script>
<iframe src="<?=$g4[path]?>" frameborder="0" width="100%" height="500" marginwidth="0" marginheight="0" scrolling="auto"></iframe>
<?
include_once ("$g4[admin_path]/admin.tail.php");
?>
여러 코드를 보고 짬봉을 해서 했는데 맞는건지는 잘 모르겠네요
업로드 된 이미지 쿼리문
copyright_form.php
----------------------------------------------------------------------------------------------------------
<?
$sub_menu = "400100";
include_once("./_common.php");
$mtimg_path = "$g4[path]/data/mtimg/index";
auth_check($auth[$sub_menu], "w");
// 게시판 디렉토리 생성
@mkdir($mtimg_path, 0707);
@chmod($mtimg_path, 0707);
$file = $mtimg_path . "/index.php";
$f = @fopen($file, "w");
@fwrite($f, "");
@fclose($f);
@chmod($file, 0606);
if ($is_admin != "super")
alert("최고관리자만 접근 가능합니다.");
$sql = " update $g4[mt_table]
set mt_topmenu = '$mt_topmenu',
mt_copyright = '$mt_copyright',
mt_menu = '$mt_menu',
mt_img = '$mt_img'
";
sql_query($sql);
goto_url("./copyright_form.php");
?>
첨부파일
댓글을 작성하시려면 로그인이 필요합니다.
댓글 1개
직접 찍어보세요,. 이미지가 넘어 오는지.