서버 구성을 변경 한 후. MYSQL 및 PHP가 업데이트되었습니다. 나는이 같은 다른 SQL 오류를 받고 있어요 : 나는, $this->dbo->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);
추가 코드 오류의 결과 것을 한PDO 관련 데이터베이스 오류
SQLSTATE[42000]: Syntax error or access violation: 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 'WHERE id = '759'' at line 1
SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.
.
코드에서 아무것도 변경하지 않아서 synthax 오류가 될 수 없습니까?
UPDATE :
// Execute statement
($values) ? $this->statement->execute($values) : $this->statement->execute();
// Return associative array
return $this->statement->fetch(PDO::FETCH_ASSOC);
}
기능 loadAssoc ($ false로 값 =) {나는 오류 PHP 치명적인 오류 : 실행 사용하는 줄에() 실행 멤버 함수를 호출합니다. 내의 cPanel에서
는 말한다 : 리눅스, PHP 5.3.21, MySQL은 5.5.28 (그냥이 한 업그레이드)는이 문제
를 해결할 것이라고 생각 그리고 같은 내 서버를 업데이트하기 전에 작업 한 이전의 모든 진술 : S
PHP documentation에서
전체 쿼리 예제를 보여주십시오. – silkfire
PDO로 버퍼 된 쿼리를 활성화하려 할 때 '코드 오류'표시 – hek2mgl
첫 번째 오류는 PDO - *와는 아무런 관련이 없습니다 * 구문 적으로 잘못된 * 쿼리를 구성했습니다. – zerkms