PMA\libraries\DatabaseInterface::affectedRows PHP Method

affectedRows() public method

returns the number of rows affected by last query
public affectedRows ( object $link = null, boolean $get_from_cache = true ) : integer | boolean
$link object the connection object
$get_from_cache boolean whether to retrieve from cache
return integer | boolean
    public function affectedRows($link = null, $get_from_cache = true)
    {
        $link = $this->getLink($link);
        if ($link === false) {
            return false;
        }
        if ($get_from_cache) {
            return $GLOBALS['cached_affected_rows'];
        } else {
            return $this->_extension->affectedRows($link);
        }
    }