====== getAffectedRows ====== {#JAPI Joomla.Framework Database JDatabase::getAffectedRows #} Returns the number of rows affected by the most recent query. Affected rows are rows that were modified by the query. ===== Syntax ===== int getAffectedRows () ===== Examples ===== $database =& JFactory::getDBO(); $query = "UPDATE #__content SET state = 0"; $database->setQuery( $query ); $database->query(); echo $database->getAffectedRows(); might produce: 43 ---- ~~DISCUSSION~~