errorERROR: Unable to identify an operator '=' for types 'text' and 'integer' You will have to retype this query using an explicit cast
와 같은 에러가 나는데 코드 상의 다음 부분에서 에러가 납니다.
$sql="SELECT count(*) AS count FROM survey_responses WHERE survey_id='$survey_id' AND question_id='$quest_array[$i]' AND response IN (1,2,3,4,5) AND group_id='$group_id'";
$result2=db_query($sql);
if (!$result2 || db_numrows($result2) < 1) {
echo "error";
echo db_error();
Unable to identify an operator '=' for types 'text' and 'integer' 라는 말로 봐선 뭔가 데이터 형식이 안맞는것 같은데 어디를 어떻게 고쳐야 할런지요?
감사합니다....
|