Mysql_fetch_assoc (): supplied argument is not a valid MySQL result resource error Solution

Source: Internet
Author: User

Recently, when using WP to build a consortium website and activating the cookie hatter plug-in the background, the following error occurs: mysql_fetch_assoc (): supplied argument is not a valid MySQL result resource, the error cause and solution are as follows:

 

In the 122nd line of the cookiehatter. php file attached to the plug-in, the following statement is provided:

$ Query = "select WC. ID, WC. postid, WC. url, WP. post_title from wp_cookieposts WC, wp_posts WP where WP. ID = WC. postid ";

The table names wp_cookieposts and wp_posts are prefixed with WP, that is, the default table name prefix when WordPress is first installed. If you modify the table name prefix when installing the database, in this case, you must modify the table name prefix in the source file!

 

BTW: this plug-in is very convenient for blogs sold by the Alliance. We suggest you try it out. The function of this plug-in is simply to prevent the phenomenon of "dropping orders, prevent your cookies from being tampered.

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.