회원가입시 파일을 받아야해서 파일 업로드를 만들었는데 정보
회원가입시 파일을 받아야해서 파일 업로드를 만들었는데본문
///////////////////////////////////////////////////register_form.skin.php
파일 : <INPUT class=box type=file name='mb_1' size=30 value="파일"><br>
<? if ($w == "u" && file_exists($mb_1)) { ?>
<br><img src='<?=$mb_1?>' align=absmiddle width='100px'>
<input type=checkbox name='del_mb_1' value='1'>삭제
///////////////////////////////////////////////////스킨
//////////////////////////////////////////////////register_form_update.php
$file_dir = "$g4[path]/data/member_file/".substr($mb_id,0,2)."".$_FILES[mb_1][name];
move_uploaded_file($_FILES[mb_1][tmp_name], $file_dir);
/////////////////////////////////////////////////
이렇게했더니 해당 폴더에 aa파일명.jpg
라고 들어가 있는데
*db에는 mb_1필드에 /tmp/php6dtY62 이렇게 나오네요..
*db에 경로가 서버에 저장되는 경로인거 같은데.. 이거 출력 어떻게 해야될까요..?
*회원가입 스킨 중에서 혹시 파일 업로드 할 수 있는 스킨 혹시 없을까요..
무리 찾아도 없네요.. 있으면 추천좀 해주세요.. 감사합니다
( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '282225' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )
1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
error file : /15sir/bbs/board.php