<?
$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',
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7830 | 9년 전 | 407 | ||
| 7829 |
|
9년 전 | 588 | |
| 7828 | 9년 전 | 520 | ||
| 7827 | 9년 전 | 410 | ||
| 7826 | 9년 전 | 417 | ||
| 7825 | 10년 전 | 461 | ||
| 7824 | 10년 전 | 436 | ||
| 7823 | 10년 전 | 356 | ||
| 7822 | 10년 전 | 340 | ||
| 7821 | 10년 전 | 296 | ||
| 7820 | 10년 전 | 336 | ||
| 7819 |
|
10년 전 | 743 | |
| 7818 | 10년 전 | 372 | ||
| 7817 | 10년 전 | 495 | ||
| 7816 | 10년 전 | 394 | ||
| 7815 | 10년 전 | 594 | ||
| 7814 | 10년 전 | 414 | ||
| 7813 | 10년 전 | 363 | ||
| 7812 | 10년 전 | 381 | ||
| 7811 | 10년 전 | 383 | ||
| 7810 | 10년 전 | 548 | ||
| 7809 | 10년 전 | 474 | ||
| 7808 | 10년 전 | 363 | ||
| 7807 | 10년 전 | 393 | ||
| 7806 |
프로그래머7
|
10년 전 | 1324 | |
| 7805 | 10년 전 | 1262 | ||
| 7804 |
zahir1312
|
10년 전 | 765 | |
| 7803 |
|
10년 전 | 1360 | |
| 7802 | 10년 전 | 449 | ||
| 7801 | 10년 전 | 854 | ||
| 7800 | 10년 전 | 1077 | ||
| 7799 | 10년 전 | 537 | ||
| 7798 | 10년 전 | 492 | ||
| 7797 | 10년 전 | 492 | ||
| 7796 | 10년 전 | 333 | ||
| 7795 | 10년 전 | 491 | ||
| 7794 | 10년 전 | 528 | ||
| 7793 | 10년 전 | 1036 | ||
| 7792 | 10년 전 | 452 | ||
| 7791 | 10년 전 | 533 | ||
| 7790 | 10년 전 | 492 | ||
| 7789 |
fbastore
|
10년 전 | 1435 | |
| 7788 | 10년 전 | 525 | ||
| 7787 | 10년 전 | 387 | ||
| 7786 | 10년 전 | 558 | ||
| 7785 | 10년 전 | 563 | ||
| 7784 | 10년 전 | 625 | ||
| 7783 | 10년 전 | 427 | ||
| 7782 | 10년 전 | 478 | ||
| 7781 | 10년 전 | 886 | ||
| 7780 | 10년 전 | 803 | ||
| 7779 | 10년 전 | 768 | ||
| 7778 | 10년 전 | 353 | ||
| 7777 | 10년 전 | 439 | ||
| 7776 | 10년 전 | 443 | ||
| 7775 | 10년 전 | 385 | ||
| 7774 | 10년 전 | 623 | ||
| 7773 | 10년 전 | 369 | ||
| 7772 | 10년 전 | 716 | ||
| 7771 | 10년 전 | 364 | ||
| 7770 | 10년 전 | 635 | ||
| 7769 | 10년 전 | 364 | ||
| 7768 | 10년 전 | 588 | ||
| 7767 | 10년 전 | 1154 | ||
| 7766 | 10년 전 | 485 | ||
| 7765 | 10년 전 | 504 | ||
| 7764 |
잘살아보자
|
10년 전 | 364 | |
| 7763 |
|
10년 전 | 1435 | |
| 7762 |
Tosea
|
10년 전 | 1045 | |
| 7761 | 10년 전 | 632 | ||
| 7760 |
잘살아보자
|
10년 전 | 665 | |
| 7759 |
잘살아보자
|
10년 전 | 483 | |
| 7758 |
잘살아보자
|
10년 전 | 575 | |
| 7757 | 10년 전 | 1226 | ||
| 7756 |
ITBANK
|
10년 전 | 1243 | |
| 7755 | 10년 전 | 1919 | ||
| 7754 | 10년 전 | 1042 | ||
| 7753 | 10년 전 | 870 | ||
| 7752 | 10년 전 | 1378 | ||
| 7751 |
잘살아보자
|
10년 전 | 512 | |
| 7750 |
잘살아보자
|
10년 전 | 468 | |
| 7749 |
잘살아보자
|
10년 전 | 467 | |
| 7748 |
잘살아보자
|
10년 전 | 461 | |
| 7747 |
잘살아보자
|
10년 전 | 561 | |
| 7746 |
잘살아보자
|
10년 전 | 670 | |
| 7745 |
잘살아보자
|
10년 전 | 900 | |
| 7744 |
잘살아보자
|
10년 전 | 407 | |
| 7743 | 10년 전 | 937 | ||
| 7742 |
starbros
|
10년 전 | 822 | |
| 7741 |
잘살아보자
|
10년 전 | 656 | |
| 7740 |
잘살아보자
|
10년 전 | 514 | |
| 7739 |
잘살아보자
|
10년 전 | 454 | |
| 7738 |
잘살아보자
|
10년 전 | 519 | |
| 7737 |
잘살아보자
|
10년 전 | 479 | |
| 7736 |
잘살아보자
|
10년 전 | 503 | |
| 7735 |
잘살아보자
|
10년 전 | 832 | |
| 7734 |
잘살아보자
|
10년 전 | 421 | |
| 7733 |
잘살아보자
|
10년 전 | 530 | |
| 7732 |
잘살아보자
|
10년 전 | 682 | |
| 7731 |
잘살아보자
|
10년 전 | 605 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기