0 ){ $upload_file_name = upload($_FILES['nm_file'],$upload_path, 50, array('gif','jpeg','jpg','png','bmp','JPG','JPEG','GIF','PNG','BMP','hwp','HWP','doc','ppt','docx','pptx' ,'pdf' )); if($upload_file_name==false){ AlertBack($strFailFile); die(); } } } //계층형 관련 데이터 설정 $no_famally=@mysql_result(mysql_query("SELECT (IFNULL(MIN(no_famally),0)) -(1) FROM board_master"),0,0); $no_order = 0; $no_step = 0; //파일 저장 $sql="insert into board_master (cd_board, cd_userid, nm_name, nm_title, no_hit , ds_open, nm_content, nm_file, nm_updir, no_famally, no_order, no_step, dt_insert,nm_insert, dt_update, nm_update,ds_delind, ds_top, ds_main, ds_kind, nm_file2, nm_file3, nm_file4, nm_file5, nm_etc1, nm_etc2, nm_etc3, nm_etc4, nm_etc5 ) values ('$cd_board','$cd_userid','$nm_name','$nm_title',0,'$ds_open','$nm_content','$upload_file_name','$upload_path',$no_famally, $no_order, $no_step, now(),'$cd_userid',now(),'$cd_userid','N','$ds_top','$ds_main','A', '$upload_file_name2','$upload_file_name3','$upload_file_name4','$upload_file_name5','$nm_etc1','$nm_etc2','$nm_etc3','$nm_etc4','$nm_etc5') "; $result = mysql_query($sql,$connect); if ($result) { AlertRedirect($strSuccess,$reURL); }else{ AlertBack($strFail); } break; default : AlertRedirect($strFail,$reURL); break; } mysql_close($connect); ?>