Forums

mysql_affected_rows - Server Could Not Be Established (3 posts)

  1. war59312
    Member
    Posted 6 years ago #

    Hey,

    Every now and then I get this error at the bottom of my blog:

    Warning: mysql_affected_rows(): A link to the server could not be established in /wp-includes/wp-db.php on line 155

    So that code is:

    if ( preg_match("/^\s*(insert|delete|update|replace) /i",$query) ) {
    $this->rows_affected = mysql_affected_rows();

    So is this a bug or what and how can I fix it? Everything else seems to work fine that is connecting to the same mysql database ATM.

    Thanks for any help.

    Will

  2. MichaelH
    Volunteer
    Posted 6 years ago #

    This thread seems related:
    http://wordpress.org/support/topic/46376

    ----
    Please help keep the Forums successful by reading:
    http://wordpress.org/support/topic/39501

    And, thank you, for letting us know if this information proves useful (or not)!

  3. war59312
    Member
    Posted 6 years ago #

    Thanks a lot my search did not show that one.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.