묻고답하기

sql 쿼리 질문

2019.04.14 16:33

초보개

모듈을 처음 만들어 보는데요

쿼리를 넣을 string을 디버그 해보면 DEBUG : string('./files/attach/images/65/004/1c645b1360eea53ca0d7e4da318db184.jpg')

로 정상적으로 나오는데

$oDB = DB::getInstance();
            $oDB->use_prepared_statements = 'N';
            $output = executeQuery('sss.sss', $args);
            $oDB->use_prepared_statements = 'Y';

위에 쿼리를 실행하면

[error] => 1064
            [message] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '/`files`/`attach`/`images`/65/004/`1c645b1360eea53ca0d7e4da318db184`.`jpg`)' at line 3
            [variables] => Array
                (
                    [_query] => INSERT  INTO `xe_sgame_files`
         (`member_srl`, `file_srl`, `file_name`, `url`)
         VALUES (4, 179, `1522faccf9f52fe078a7df939741e54a`.`jpg`, ./`files`/`attach`/`images`/65/004/`1c645b1360eea53ca0d7e4da318db184`.`jpg`)
                    [_elapsed_time] => 0.00021
                )

 

이런 오류가 나옵니다.

 

어떻게 해결하는건지 모르겠네요.. 도와주세요

태그 연관 글
  1. [2020/09/04] 묻고답하기 존재하지 않는 회원 아이디입니다 by Crack리브레 *1
  2. [2020/01/30] 묻고답하기 3차메뉴 표시 방법 이게 맞나요? by LYG
  3. [2019/04/03] 묻고답하기 회원가입 select 폼 형식 입력값 불러오기 질문 by 이퓨
  4. [2018/09/28] 묻고답하기 왕초보가 질문드립니다...도와주세요!!!! by 네미즈
  5. [2018/01/16] 포럼 iOS11 사파리에서 발생하는 댓글 작성 로그인 안되는 오류 + 해결방법 by 정희 *2