희한하네요.. sql_query 시 이미지 경로를 바꿔버리네요
본문
$sql = " INSERT INTO
g5_write_gallery
SET
wr_num = '-176',
wr_reply = '',
wr_comment = 0,
ca_name = '',
wr_option = '',
wr_subject = '신민아 몸매 실루엣 ',
wr_content = ' <br /><br /> <style type="text/css"> div.autosourcing-stub { position:absolute; z-index:-9999; } div.autosourcing-stub-extra { position:absolute; opacity:0 } </style> <div id="autosourcing_1"><div class="view-img"></div><div class="view-content" itemprop="description"><a href="" target="_blank" data-lightbox="view-lightbox"><img name='target_resize_image[]' onclick='image_window(this)' style='cursor:pointer;' title="" class="img-tag" alt="" src="" itemprop="image" content="" / ></a><br /><br /><a href="" target="_blank" data-lightbox="view-lightbox"><img name='target_resize_image[]' onclick='image_window(this)' style='cursor:pointer;' title="" class="img-tag" alt="" src="" / ></a><br /><br />위가 원본<br /><br />아래가 밝기 조절한 거<br /></div></div><div class="view-good-box"><span class="view-nogood"><a href="" target="_blank"><br /></a></span>',
wr_link1 = '',
wr_link2 = '',
wr_link1_hit = 0,
wr_link2_hit = 0,
wr_hit = 581,
wr_good = 37,
wr_nogood = 0,
mb_id = 'snbz734j',
wr_password = '*2F27BF41351B81B326B820CA4B4B6D2B49326852',
wr_name = '백합',
wr_email = '',
wr_homepage = '',
wr_datetime = '2016-07-04 02:00:35',
wr_last = '2016-07-04 02:00:35',
wr_ip = '14.36.11.43',
wr_1 = '766081',
wr_2 = '',
wr_3 = '',
wr_4 = '',
wr_5 = '',
wr_6 = '',
wr_7 = '',
wr_8 = '',
wr_9 = '',
wr_10 = ''
";
sql_query($sql);
답변 2
위에 보여지는 코드에서 일단 $sql 문이 어떻게 되는지 확인하고 db에 들어가 있는걸 확인하고
보통은 $sql문과 db에 입력된 문장이 같잖아요 이게 달라진다면 db에서 http에대한 변경이 있는것이겠죠
write_update.php 페이지에서 echo($sql);
해보세요 안바뀌어있는지