This is a translated page. The original can be found here: http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/
UPDATES VIA RSS | Email 업데이 트를 통해 RSS | 이메일 Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP Error: Call to a member … / 코딩 / PHP는 / PHP는 오류가 발생했습니다 : 회원에게 전화 ...

PHP Error: Call to a member function fetch_assoc() on a non-object in PHP는 오류가 발생했습니다 : 회원 fetch_assoc 비 ()에서 - 개체 함수를 호출

Posted on 23. 23 게시됨. Jun, 2009 by Dragos in Coding , PHP 6 월, 2009 코딩, PHP로의 드라 고스에 의해

If you get this error: Call to a member function fetch_assoc() on a non-object in … , it means that you have an error in your mysql syntax. 만약 당신이 오류 메시지 : 회원에게 전화 fetch_assoc 비 ()에서 - 개체를 ... 그것은 당신이 MySQL을 구문에 오류가 발생했을 의미 작동하지 않습니다. Supposing that $mysqli is your database connection object, put echo $mysqli->error; just before the line you're getting the error on. $ mysqli는 귀하의 데이터베이스에 연결 개체입니다 치죠 $ mysqli - "오류 에코 넣어; 바로 앞에 선 당신 오류가 있어요.

$mysqli=new mysqli(HOST,USER,PASS,DB); $ mysqli = 새로운 mysqli (호스트, 사용자, 패스, DB를);
$mQuery=$mysqli->query('select `data` from `this_table` where `id`=1'); `달러 mQuery = $ mysqli - "검색어 ( '선택`데이터`this_table``id를`어디에 = 1');
echo $mysqli->error; //echoes that column `data` does not exist in table `this_table` "오류가 $ mysqli - 에코; / / 메아리 열`데이터`테이블에`this_table`이 존재하지 않습니다
$row=$mQuery->fetch_assoc(); //gives error as the column `data` is in table `that_table`, not in table `this_table` $ 행 = $ mQuery - "fetch_assoc (); / /`테이블에`테이블`, 아니 that_table`this_table`열`데이터 오류를 제공합니다
$mysqli->close(); $ mysqli - "닫기 ();
Translate this post 번역이 게시물에


Related posts: 관련 게시물 :

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP WordPress의 : 쉽게 귀하의 계정에 비밀 번호를 MySQL과 PHP를 사용하여 재설정
  2. Coding:How to fetch user profile data with SSI.php from a SMF forum database 코딩 : 어떻게 SMF 포럼 SSI.php와 데이터베이스에서 사용자 프로필 데이터를 가져올 수
  3. JavaScript: How to get the index (position within a group) of an object with jQuery? 자바 스크립트 : 어떻게 jQuery와 개체의 (위치를 그룹 내에서) 인덱스를 얻을가?
  4. JavaScript: Send function as a parameter to another function (callbacks) 자바 스크립트 : 다른 함수 (콜백)를 매개 변수로 함수를 보내기
  5. Ubuntu terminal: invalid host type && configure: error: can only configure for one host and one target at a time 우분투 터미널 : 잘못된 호스트 유형 & & 구성 : 오류 : 수 한 번에 하나의 호스트에 하나의 대상에 대해서만 구성

  • Jenny 제니
    Pretty nice post. 아주 좋은 게시할 수있습니다. I just found your site and wanted to say 난 그저 당신의 사이트를 발견하고 말을하고 싶었어
    that I've really enjoyed reading your blog posts. 내가 정말 귀하의 블로그 게시물을 읽었어요. Anyway 어쨌든
    I'll be subscribing to your blog and I hope you write again soon! 난 당신의 블로그를 구독있을거야 그리고 난 당신이 곧 다시 쓰는 희망도 없다!
blog comments powered by Disqus 블로그 덧글 Disqus에 의해 제공