<?
$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',
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8130 | 9년 전 | 572 | ||
| 8129 |
|
9년 전 | 685 | |
| 8128 | 9년 전 | 543 | ||
| 8127 |
|
9년 전 | 589 | |
| 8126 | 9년 전 | 522 | ||
| 8125 | 9년 전 | 777 | ||
| 8124 |
|
9년 전 | 535 | |
| 8123 | 9년 전 | 522 | ||
| 8122 | 9년 전 | 453 | ||
| 8121 | 9년 전 | 561 | ||
| 8120 | 9년 전 | 481 | ||
| 8119 | 9년 전 | 569 | ||
| 8118 |
|
9년 전 | 645 | |
| 8117 |
|
9년 전 | 415 | |
| 8116 |
PASKRAN
|
9년 전 | 474 | |
| 8115 | 9년 전 | 467 | ||
| 8114 |
kiplayer
|
9년 전 | 607 | |
| 8113 | 9년 전 | 465 | ||
| 8112 |
|
9년 전 | 574 | |
| 8111 | 9년 전 | 414 | ||
| 8110 | 9년 전 | 456 | ||
| 8109 | 9년 전 | 387 | ||
| 8108 |
|
9년 전 | 564 | |
| 8107 |
|
9년 전 | 452 | |
| 8106 |
|
9년 전 | 454 | |
| 8105 | 9년 전 | 484 | ||
| 8104 |
|
9년 전 | 449 | |
| 8103 |
|
9년 전 | 449 | |
| 8102 |
|
9년 전 | 421 | |
| 8101 |
snshero
|
9년 전 | 807 | |
| 8100 | 9년 전 | 853 | ||
| 8099 | 9년 전 | 830 | ||
| 8098 | 9년 전 | 729 | ||
| 8097 | 9년 전 | 538 | ||
| 8096 | 9년 전 | 735 | ||
| 8095 | 9년 전 | 866 | ||
| 8094 | 9년 전 | 537 | ||
| 8093 | 9년 전 | 819 | ||
| 8092 | 9년 전 | 773 | ||
| 8091 | 9년 전 | 1157 | ||
| 8090 | 9년 전 | 783 | ||
| 8089 | 9년 전 | 996 | ||
| 8088 | 9년 전 | 660 | ||
| 8087 | 9년 전 | 787 | ||
| 8086 | 9년 전 | 535 | ||
| 8085 | 9년 전 | 499 | ||
| 8084 | 9년 전 | 618 | ||
| 8083 | 9년 전 | 590 | ||
| 8082 | 9년 전 | 778 | ||
| 8081 | 9년 전 | 488 | ||
| 8080 | 9년 전 | 586 | ||
| 8079 | 9년 전 | 545 | ||
| 8078 | 9년 전 | 464 | ||
| 8077 | 9년 전 | 554 | ||
| 8076 | 9년 전 | 423 | ||
| 8075 | 9년 전 | 457 | ||
| 8074 | 9년 전 | 419 | ||
| 8073 | 9년 전 | 475 | ||
| 8072 | 9년 전 | 468 | ||
| 8071 |
o1o111
|
9년 전 | 915 | |
| 8070 | 9년 전 | 425 | ||
| 8069 | 9년 전 | 361 | ||
| 8068 | 9년 전 | 615 | ||
| 8067 | 9년 전 | 413 | ||
| 8066 | 9년 전 | 441 | ||
| 8065 | 9년 전 | 400 | ||
| 8064 | 9년 전 | 394 | ||
| 8063 | 9년 전 | 360 | ||
| 8062 | 9년 전 | 331 | ||
| 8061 | 9년 전 | 368 | ||
| 8060 | 9년 전 | 406 | ||
| 8059 | 9년 전 | 341 | ||
| 8058 | 9년 전 | 280 | ||
| 8057 | 9년 전 | 407 | ||
| 8056 | 9년 전 | 326 | ||
| 8055 | 9년 전 | 373 | ||
| 8054 | 9년 전 | 382 | ||
| 8053 | 9년 전 | 433 | ||
| 8052 | 9년 전 | 306 | ||
| 8051 | 9년 전 | 355 | ||
| 8050 | 9년 전 | 411 | ||
| 8049 | 9년 전 | 343 | ||
| 8048 | 9년 전 | 449 | ||
| 8047 | 9년 전 | 386 | ||
| 8046 | 9년 전 | 329 | ||
| 8045 | 9년 전 | 276 | ||
| 8044 | 9년 전 | 363 | ||
| 8043 | 9년 전 | 318 | ||
| 8042 | 9년 전 | 308 | ||
| 8041 | 9년 전 | 372 | ||
| 8040 | 9년 전 | 296 | ||
| 8039 | 9년 전 | 337 | ||
| 8038 | 9년 전 | 281 | ||
| 8037 | 9년 전 | 425 | ||
| 8036 | 9년 전 | 513 | ||
| 8035 | 9년 전 | 446 | ||
| 8034 | 9년 전 | 407 | ||
| 8033 | 9년 전 | 367 | ||
| 8032 | 9년 전 | 471 | ||
| 8031 | 9년 전 | 364 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기