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 التحديثات عن طريق آر إس إس | البريد الالكتروني Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP Error: Call to a member … الوطن / الترميز / [فب] / [فب] خطأ : دعوة إلى عضو...

PHP Error: Call to a member function fetch_assoc() on a non-object in [فب] خطأ : دعوة إلى وظيفة fetch_assoc عضوا () على غير كائن في

Posted on 23. نشر في 23. Jun, 2009 by Dragos in Coding , PHP يونيو ، 2009 من قبل دراكوش في الترميز ، [فب]

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 عضوا () على غير كائن في... ، فهذا يعني أن لديك خطأ في بناء الجملة الخلية الخاصة بك. 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 الجديد (البلد المضيف ، دليل ، وتمرير ، الديسيبل) ؛
$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 وورد : بسهولة إعادة تعيين كلمة المرور الخاصة بحسابك باستخدام ماي و [فب
  2. Coding:How to fetch user profile data with SSI.php from a SMF forum database الترميز : كيفية إحضار البيانات الجانبي للمستخدم مع 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 بلوق التعليقات مدعوم من ديسقوس]