<?
$bo_table = "sub06_04"; // 코몬에 테이블이 들어가야 write 변수에값이들어감~
include_once("./_common.php");
$bo_table = "sub06_04"; // 코몬에 테이블이 들어가야 write 변수에값이들어감~
include_once("./_common.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
?>
잡스러운 보드 -> 그누보드로 변환 ver.1 by CHEONSIN<br>
<?
$sql = "select * from client_board where 1 order by idx";
$result = sql_query($sql);
$result = sql_query($sql);
$data_path = $g4[path]."/data/file/$bo_table";
//$view = sql_fetch($sql);
//echo $view[title]; exit;
//매장이 어디에있나요?/ 나옴
//echo $view[title]; exit;
//매장이 어디에있나요?/ 나옴
while ($row = sql_fetch_array($result)) {
$html = "html1";
$wr_num = get_next_num($write_table);
/*if($row[attfiles]) {
$attfiles = str_replace(":", "", $row[attfiles]);
} else {
$attfiles = "";
}*/
$attfiles = str_replace(":", "", $row[attfiles]);
} else {
$attfiles = "";
}*/
//if($row[secret] == "y") $secret = "secret";
//else $secret = "secret";
//else $secret = "secret";
$subject = strip_tags($row[title]);
$subject = str_replace("'", '"', $subject);
$subject = str_replace("'", '"', $subject);
$comment = str_replace("'", '"', $row[content]);
$comment = str_replace("\n", "<br>", $row[content]);
$comment = str_replace("\n", "<br>", $row[content]);
$wr_password = sql_password($row[pwd]);
$wr_email = $row[usermail];
?>
<!--tr>
<td><?=$row[idx]?></td>
<td><?=$attfiles?></td>
</tr-->
<!---->
<?
$sql = " insert into $write_table
set wr_num = '".$row[num]."',
wr_id = '".$row[idx]."',
wr_reply = '$wr_reply',
wr_comment = 0,
ca_name = '$ca_name',
wr_option = '$html,$secret,$mail',
wr_subject = '$subject',
wr_content = '$comment',
wr_link1 = '$wr_link1',
wr_link2 = '$wr_link2',
wr_link1_hit = 0,
wr_link2_hit = 0,
wr_trackback = '$wr_trackback',
wr_hit = '".$row[readnum]."',
wr_good = $wr_good',
wr_nogood = 0,
mb_id = '".$row[username]."',
wr_password = '$wr_password',
wr_name = '".$row[username]."',
wr_email = '$wr_email',
wr_homepage = '$wr_homepage',
wr_datetime = '".date("Y-m-d H:i:s", $row[w_date])."',
wr_last = '".date("Y-m-d H:i:s", $row[w_date])."',
wr_ip = '".$row[ipaddress]."' ";
sql_query($sql);
?>
<!--tr>
<td><?=$row[idx]?></td>
<td><?=$attfiles?></td>
</tr-->
<!---->
<?
$sql = " insert into $write_table
set wr_num = '".$row[num]."',
wr_id = '".$row[idx]."',
wr_reply = '$wr_reply',
wr_comment = 0,
ca_name = '$ca_name',
wr_option = '$html,$secret,$mail',
wr_subject = '$subject',
wr_content = '$comment',
wr_link1 = '$wr_link1',
wr_link2 = '$wr_link2',
wr_link1_hit = 0,
wr_link2_hit = 0,
wr_trackback = '$wr_trackback',
wr_hit = '".$row[readnum]."',
wr_good = $wr_good',
wr_nogood = 0,
mb_id = '".$row[username]."',
wr_password = '$wr_password',
wr_name = '".$row[username]."',
wr_email = '$wr_email',
wr_homepage = '$wr_homepage',
wr_datetime = '".date("Y-m-d H:i:s", $row[w_date])."',
wr_last = '".date("Y-m-d H:i:s", $row[w_date])."',
wr_ip = '".$row[ipaddress]."' ";
sql_query($sql);
>>에러코드
insert into g4_write_sub06_04 set wr_num = '1', wr_id = '3', wr_reply = '', wr_comment = 0, ca_name = '', wr_option = 'html1,,', wr_subject = '매장이 어디에 있나요?', wr_content = '안녕하세요
홈페이지 기념에 할인행사를 하신다고햇는데 베스트빈매장을 못보았는데요
어디어디에 있나요? 가보려고합니다 ', wr_link1 = '', wr_link2 = '', wr_link1_hit = 0, wr_link2_hit = 0, wr_trackback = '', wr_hit = '849', wr_good = ', wr_nogood = 0, mb_id = '장연숙', wr_password = '*A4B6157319038724E3560894F7F932C8886EBFCF', wr_name = '장연숙', wr_email = 'jayes@hanmail.net', wr_homepage = '', wr_datetime = '1970-01-01 09:33:25', wr_last = '1970-01-01 09:33:25', wr_ip = '220.117.245.184'
홈페이지 기념에 할인행사를 하신다고햇는데 베스트빈매장을 못보았는데요
어디어디에 있나요? 가보려고합니다 ', wr_link1 = '', wr_link2 = '', wr_link1_hit = 0, wr_link2_hit = 0, wr_trackback = '', wr_hit = '849', wr_good = ', wr_nogood = 0, mb_id = '장연숙', wr_password = '*A4B6157319038724E3560894F7F932C8886EBFCF', wr_name = '장연숙', wr_email = 'jayes@hanmail.net', wr_homepage = '', wr_datetime = '1970-01-01 09:33:25', wr_last = '1970-01-01 09:33:25', wr_ip = '220.117.245.184'
1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '장연숙', wr_password = '*A4B6157319038724E3560894F7F932C8886' at line 16
error file : /db.php
>> 나오는데요 뭐가 문제일까욤??
댓글 1개
13년 전
작은 따옴표 하나가 빠졌네요.
wr_good = $wr_good',
=>
wr_good = '$wr_good',
wr_good = $wr_good',
=>
wr_good = '$wr_good',
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 399 | ||
| 7929 | 9년 전 | 318 | ||
| 7928 | 9년 전 | 410 | ||
| 7927 | 9년 전 | 327 | ||
| 7926 | 9년 전 | 658 | ||
| 7925 | 9년 전 | 342 | ||
| 7924 | 9년 전 | 330 | ||
| 7923 | 9년 전 | 336 | ||
| 7922 | 9년 전 | 369 | ||
| 7921 | 9년 전 | 395 | ||
| 7920 | 9년 전 | 315 | ||
| 7919 | 9년 전 | 330 | ||
| 7918 | 9년 전 | 486 | ||
| 7917 | 9년 전 | 323 | ||
| 7916 | 9년 전 | 399 | ||
| 7915 | 9년 전 | 399 | ||
| 7914 | 9년 전 | 407 | ||
| 7913 | 9년 전 | 564 | ||
| 7912 | 9년 전 | 410 | ||
| 7911 | 9년 전 | 357 | ||
| 7910 | 9년 전 | 401 | ||
| 7909 | 9년 전 | 499 | ||
| 7908 | 9년 전 | 415 | ||
| 7907 | 9년 전 | 359 | ||
| 7906 | 9년 전 | 381 | ||
| 7905 | 9년 전 | 357 | ||
| 7904 | 9년 전 | 346 | ||
| 7903 | 9년 전 | 341 | ||
| 7902 | 9년 전 | 550 | ||
| 7901 |
|
9년 전 | 726 | |
| 7900 | 9년 전 | 572 | ||
| 7899 | 9년 전 | 370 | ||
| 7898 | 9년 전 | 378 | ||
| 7897 | 9년 전 | 331 | ||
| 7896 | 9년 전 | 351 | ||
| 7895 | 9년 전 | 459 | ||
| 7894 | 9년 전 | 381 | ||
| 7893 | 9년 전 | 323 | ||
| 7892 | 9년 전 | 375 | ||
| 7891 | 9년 전 | 753 | ||
| 7890 | 9년 전 | 1188 | ||
| 7889 | 9년 전 | 741 | ||
| 7888 |
limsy1987
|
9년 전 | 541 | |
| 7887 | 9년 전 | 537 | ||
| 7886 | 9년 전 | 423 | ||
| 7885 | 9년 전 | 395 | ||
| 7884 | 9년 전 | 398 | ||
| 7883 | 9년 전 | 395 | ||
| 7882 | 9년 전 | 440 | ||
| 7881 | 9년 전 | 429 | ||
| 7880 | 9년 전 | 550 | ||
| 7879 | 9년 전 | 450 | ||
| 7878 | 9년 전 | 1207 | ||
| 7877 | 9년 전 | 742 | ||
| 7876 | 9년 전 | 472 | ||
| 7875 | 9년 전 | 551 | ||
| 7874 |
|
9년 전 | 800 | |
| 7873 | 9년 전 | 509 | ||
| 7872 | 9년 전 | 666 | ||
| 7871 | 9년 전 | 473 | ||
| 7870 | 9년 전 | 597 | ||
| 7869 | 9년 전 | 424 | ||
| 7868 | 9년 전 | 431 | ||
| 7867 | 9년 전 | 411 | ||
| 7866 | 9년 전 | 478 | ||
| 7865 | 9년 전 | 441 | ||
| 7864 | 9년 전 | 505 | ||
| 7863 | 9년 전 | 502 | ||
| 7862 | 9년 전 | 459 | ||
| 7861 | 9년 전 | 620 | ||
| 7860 | 9년 전 | 610 | ||
| 7859 | 9년 전 | 403 | ||
| 7858 | 9년 전 | 694 | ||
| 7857 | 9년 전 | 1063 | ||
| 7856 | 9년 전 | 511 | ||
| 7855 | 9년 전 | 737 | ||
| 7854 | 9년 전 | 723 | ||
| 7853 | 9년 전 | 571 | ||
| 7852 | 9년 전 | 500 | ||
| 7851 | 9년 전 | 495 | ||
| 7850 | 9년 전 | 578 | ||
| 7849 | 9년 전 | 353 | ||
| 7848 | 9년 전 | 403 | ||
| 7847 | 9년 전 | 642 | ||
| 7846 | 9년 전 | 446 | ||
| 7845 | 9년 전 | 406 | ||
| 7844 | 9년 전 | 386 | ||
| 7843 | 9년 전 | 404 | ||
| 7842 | 9년 전 | 390 | ||
| 7841 | 9년 전 | 375 | ||
| 7840 | 9년 전 | 391 | ||
| 7839 | 9년 전 | 426 | ||
| 7838 | 9년 전 | 509 | ||
| 7837 | 9년 전 | 346 | ||
| 7836 | 9년 전 | 393 | ||
| 7835 | 9년 전 | 463 | ||
| 7834 |
|
9년 전 | 1185 | |
| 7833 | 9년 전 | 416 | ||
| 7832 | 9년 전 | 405 | ||
| 7831 | 9년 전 | 552 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기