php 업로드후에 글쓰기폼에 이미지태그 자동으로 정보
php 업로드후에 글쓰기폼에 이미지태그 자동으로본문
php 업로드후에 글쓰기폼에 이미지태그 자동으로
입력되게 하는법이 무엇인가요?ㅜㅜ
php 업로드후에 글쓰기폼에 이미지태그
<?
include "./dbconfig.php";
$bbsid = $_POST['wr_id'];
if($_FILES[filedata][size] > 0){
$path = "/picup/uploaded/";
$filename = date("YmdHis").".jpg";
move_uploaded_file($_FILES['filedata']['tmp_name'], $_SERVER['DOCUMENT_ROOT'].$path.$filename);
$query = "insert into test_image (bbsNo,path,filename) values ($bbsid, '$path','$filename')";
if(mysql_query($query)) echo "성공";
else echo "실패";
}
?>
db저장상관없이
업로드된 사진을 내용폼에
<*img src=""> 형태로 뿌려주려면 어떻게 하면좋을까요?ㅠㅠ
입력되게 하는법이 무엇인가요?ㅜㅜ
php 업로드후에 글쓰기폼에 이미지태그
<?
include "./dbconfig.php";
$bbsid = $_POST['wr_id'];
if($_FILES[filedata][size] > 0){
$path = "/picup/uploaded/";
$filename = date("YmdHis").".jpg";
move_uploaded_file($_FILES['filedata']['tmp_name'], $_SERVER['DOCUMENT_ROOT'].$path.$filename);
$query = "insert into test_image (bbsNo,path,filename) values ($bbsid, '$path','$filename')";
if(mysql_query($query)) echo "성공";
else echo "실패";
}
?>
db저장상관없이
업로드된 사진을 내용폼에
<*img src=""> 형태로 뿌려주려면 어떻게 하면좋을까요?ㅠㅠ
( 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 = '225344' 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
