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.