MINI MINI MANI MO
<?
// 공통 함수
require_once "../_common/common.php";
include $_SERVER['DOCUMENT_ROOT'].'/_config/_class/phpfun.class.php';
$phpfun = new phpfun();
companyUpOnly();
if($idx){
$data=mysql_fetch_array(mysql_query("select * from tow_image where tow_idx='$idx' "));
$sdir="../../data/tow_image/";
$filen="file".$img;
unlink($sdir.$data[$filen]);
for($k=$img;$k<=30;$k++){
$filen="file".$k;
$j=$k+1;
$filen2="file".$j;
if($k==30){
$query="update tow_image set ".$filen."='' where tow_idx='$idx' ";
}else{
$query="update tow_image set ".$filen."='".$data[$filen2]."' where tow_idx='$idx' ";
}
mysql_query($query);
}
ParentReload();
}
?>
<script>
parent.opener.document.location.reload();
</script>
OHA YOOOO