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 अद्यतन Via आरएसएस | ईमेल 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 जून, 2009 कोडिंग, PHP में Dragos द्वारा

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 (HOST, प्रयोक्ता, दो, DB);
$mQuery=$mysqli->query('select `data` from `this_table` where `id`=1'); mQuery $ = mysqli $> '(चयन डेटा `` से प्रश्न `this_table` जहां `आईडी' 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) जावास्क्रिप्ट: एक और समारोह callbacks (एक पैरामीटर के रूप में कार्य भेजें)
  5. Ubuntu terminal: invalid host type && configure: error: can only configure for one host and one target at a time Ubuntu टर्मिनल: अवैध मेजबान प्रकार & & विन्यस्त: त्रुटि कर सकते हैं: एक बार में केवल एक मेजबान और एक लक्ष्य के लिए कॉन्फ़िगर

  • 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 द्वारा संचालित