<?
$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',
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 4830 |
임페리얼웹
|
13년 전 | 1356 | |
| 4829 |
임페리얼웹
|
13년 전 | 703 | |
| 4828 | 13년 전 | 3461 | ||
| 4827 |
|
13년 전 | 1220 | |
| 4826 | 13년 전 | 2730 | ||
| 4825 | 13년 전 | 1065 | ||
| 4824 |
gnuskin쩜net
|
13년 전 | 756 | |
| 4823 | 13년 전 | 809 | ||
| 4822 |
visualp
|
13년 전 | 680 | |
| 4821 |
다케미카코
|
13년 전 | 1256 | |
| 4820 | 13년 전 | 1344 | ||
| 4819 | 13년 전 | 2657 | ||
| 4818 |
크라이스트
|
13년 전 | 4234 | |
| 4817 |
임페리얼웹
|
13년 전 | 698 | |
| 4816 | 13년 전 | 3257 | ||
| 4815 |
하모니칼수
|
13년 전 | 640 | |
| 4814 | 13년 전 | 1103 | ||
| 4813 | 13년 전 | 700 | ||
| 4812 |
임페리얼웹
|
13년 전 | 1083 | |
| 4811 |
임페리얼웹
|
13년 전 | 1830 | |
| 4810 | 13년 전 | 1143 | ||
| 4809 | 13년 전 | 620 | ||
| 4808 | 13년 전 | 1277 | ||
| 4807 |
너는나의봄이다
|
13년 전 | 893 | |
| 4806 | 13년 전 | 1290 | ||
| 4805 | 13년 전 | 1771 | ||
| 4804 | 13년 전 | 1067 | ||
| 4803 |
한번잘해보자
|
13년 전 | 714 | |
| 4802 | 13년 전 | 1903 | ||
| 4801 |
꼬꼬아부지
|
13년 전 | 1182 | |
| 4800 | 13년 전 | 764 | ||
| 4799 |
|
13년 전 | 705 | |
| 4798 | 13년 전 | 1066 | ||
| 4797 |
한번잘해보자
|
13년 전 | 605 | |
| 4796 | 13년 전 | 1717 | ||
| 4795 | 13년 전 | 995 | ||
| 4794 |
|
13년 전 | 1013 | |
| 4793 |
|
13년 전 | 649 | |
| 4792 | 13년 전 | 1288 | ||
| 4791 | 13년 전 | 2096 | ||
| 4790 |
|
13년 전 | 614 | |
| 4789 |
한번잘해보자
|
13년 전 | 510 | |
| 4788 |
|
13년 전 | 683 | |
| 4787 | 13년 전 | 3277 | ||
| 4786 |
한번잘해보자
|
13년 전 | 745 | |
| 4785 | 13년 전 | 1300 | ||
| 4784 | 13년 전 | 1075 | ||
| 4783 |
|
13년 전 | 719 | |
| 4782 | 13년 전 | 7730 | ||
| 4781 |
크라운엠버서더
|
13년 전 | 1102 | |
| 4780 | 13년 전 | 1751 | ||
| 4779 | 13년 전 | 751 | ||
| 4778 | 13년 전 | 1088 | ||
| 4777 | 13년 전 | 912 | ||
| 4776 | 13년 전 | 1887 | ||
| 4775 | 13년 전 | 3318 | ||
| 4774 | 13년 전 | 1530 | ||
| 4773 | 13년 전 | 3236 | ||
| 4772 | 13년 전 | 1409 | ||
| 4771 | 13년 전 | 3855 | ||
| 4770 | 13년 전 | 1402 | ||
| 4769 | 13년 전 | 894 | ||
| 4768 | 13년 전 | 1865 | ||
| 4767 | 13년 전 | 2643 | ||
| 4766 | 13년 전 | 1562 | ||
| 4765 | 13년 전 | 1375 | ||
| 4764 | 13년 전 | 3136 | ||
| 4763 | 13년 전 | 1161 | ||
| 4762 |
|
13년 전 | 717 | |
| 4761 | 13년 전 | 1608 | ||
| 4760 | 13년 전 | 843 | ||
| 4759 |
NTYPE
|
13년 전 | 5167 | |
| 4758 |
프로프리랜서
|
13년 전 | 823 | |
| 4757 |
프로프리랜서
|
13년 전 | 1210 | |
| 4756 | 13년 전 | 808 | ||
| 4755 |
원시인교주
|
13년 전 | 834 | |
| 4754 |
there007
|
13년 전 | 948 | |
| 4753 | 13년 전 | 1764 | ||
| 4752 |
세상의중심
|
13년 전 | 1573 | |
| 4751 | 13년 전 | 1298 | ||
| 4750 | 13년 전 | 1499 | ||
| 4749 |
또다른세상
|
13년 전 | 3652 | |
| 4748 | 13년 전 | 762 | ||
| 4747 |
cula100jak
|
13년 전 | 1647 | |
| 4746 | 13년 전 | 1474 | ||
| 4745 |
|
13년 전 | 613 | |
| 4744 |
designcity
|
13년 전 | 739 | |
| 4743 | 13년 전 | 616 | ||
| 4742 |
|
13년 전 | 8346 | |
| 4741 | 13년 전 | 833 | ||
| 4740 | 13년 전 | 1637 | ||
| 4739 | 13년 전 | 1310 | ||
| 4738 |
|
13년 전 | 741 | |
| 4737 |
Xerro
|
13년 전 | 483 | |
| 4736 | 13년 전 | 3720 | ||
| 4735 |
keith
|
13년 전 | 534 | |
| 4734 |
|
13년 전 | 688 | |
| 4733 | 13년 전 | 1743 | ||
| 4732 |
|
13년 전 | 1244 | |
| 4731 |
|
13년 전 | 1294 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기