$cCount = $cCount - 1;
if ($wr_id) {
$sql = " SELECT * FROM g4_board_file WHERE bo_table = '$bo_table' AND wr_id = $wr_id ORDER BY wr_id desc, bf_no asc limit $cCount, 1 ";
} else {
$sql = " SELECT * FROM g4_board_file WHERE bo_table = '$bo_table' Order By wr_id desc, bf_no asc limit $cCount, 1 ";
}
$result = sql_fetch($sql);
$image_ = "{$result[bf_file ]}"; // 이미지파일명저장
$images_ = "$g4[path]/data/file/$bo_table/{$result[bf_file]}"; // 이미지의 경로 저장
$image = str_replace('%', '%25', $image_); // 한글파일명 때문에...
$images = str_replace('%', '%25', $images_ ); // 한글파일명 때문에...
대략 오류가 나는 페이지 sql 구문이 이렇습니다.
에러코드는
select wr_subject from g4_write_ where wr_id =
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 '' at line 1
이렇게 나오구요...이미지 슬라이드쇼에 들어가있는 구문인데 어떻게 수정을 봐야할지 도움좀 부탁드립니다.
if ($wr_id) {
$sql = " SELECT * FROM g4_board_file WHERE bo_table = '$bo_table' AND wr_id = $wr_id ORDER BY wr_id desc, bf_no asc limit $cCount, 1 ";
} else {
$sql = " SELECT * FROM g4_board_file WHERE bo_table = '$bo_table' Order By wr_id desc, bf_no asc limit $cCount, 1 ";
}
$result = sql_fetch($sql);
$image_ = "{$result[bf_file ]}"; // 이미지파일명저장
$images_ = "$g4[path]/data/file/$bo_table/{$result[bf_file]}"; // 이미지의 경로 저장
$image = str_replace('%', '%25', $image_); // 한글파일명 때문에...
$images = str_replace('%', '%25', $images_ ); // 한글파일명 때문에...
대략 오류가 나는 페이지 sql 구문이 이렇습니다.
에러코드는
select wr_subject from g4_write_ where wr_id =
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 '' at line 1
이렇게 나오구요...이미지 슬라이드쇼에 들어가있는 구문인데 어떻게 수정을 봐야할지 도움좀 부탁드립니다.
댓글 1개
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기