• Resolved don_ousian

    (@don_ousian)


    I’m using WP 1.5.2 and I’ve had some problems after installing “php-stats” a stats software. The warning was shown in any browser in Windows but not in GNU/Linux.
    I could managed them so if any get the same problem here you have a solution.
    Warning: mysql_affected_rows(): A link to the server could not be established in XXX/wordpress/wp-includes/wp-db.php on line 155
    I’ve get the solution changing this:
    $this->rows_affected = mysql_affected_rows();
    for this
    $this->rows_affected = mysql_affected_rows($this->dbh);
    on line 155.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I am also having this problem.

    So what does $this->dbh do ?

    I’m getting this same error message, but when I try the fix ($this->dbh) I get this error message instead:

    Warning: mysql_affected_rows(): 5 is not a valid MySQL-Link resource in XXX/wp-includes/wp-db.php on line 155

    anyone have any ideas how to get rid of this error?

    I don’t know how or why this worked, but it did. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: mysql_affected_rows()’ is closed to new replies.