references:joomla.framework:database:jdatabase-getaffectedrowsTable of Contents
getAffectedRows
Returns the number of rows affected by the most recent query. Affected rows are rows that were modified by the query. Syntaxint getAffectedRows () ExamplesExample $database =& JFactory::getDBO(); $query = "UPDATE #__content SET state = 0"; $database->setQuery( $query ); $database->query(); echo $database->getAffectedRows(); might produce: Result 43
Discussion |


