[Plugin: flickr-press] mysql_query() expects parameter 2 to be resource
-
I get this on my site after a week running the flickr-press plugin (not flickrpress..) But now i got this message on the top of my gallery page:
Warning: mysql_query() expects parameter 2 to be resource, null given in /customers/holten-motorsport.no/holten-motorsport.no/httpd.www/wp-content/plugins/flickr-press/flickr-includes.php on line 20Warning: mysql_query() expects parameter 2 to be resource, null given in /customers/holten-motorsport.no/holten-motorsport.no/httpd.www/wp-content/plugins/flickr-press/flickr-includes.php on line 21
Here are the lines from my flickr-includes.php:
mysql_query(“DELETE FROM $table WHERE expiration < DATE_SUB(NOW(), INTERVAL {$this->cache_expire} second)”, $db);
mysql_query(‘OPTIMIZE TABLE ‘ . $this->cache_table, $db);Is there something wrong in the php? I’ve googled the message and found severeal other pages with the same issue…
The topic ‘[Plugin: flickr-press] mysql_query() expects parameter 2 to be resource’ is closed to new replies.