API17

Difference between revisions of "JDatabase::getAffectedRows"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (→‎See also: moving preparation)
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
=={{JVer|11.1}} JDatabase::getAffectedRows==
 
=={{JVer|11.1}} JDatabase::getAffectedRows==
 
===Description===
 
===Description===
Get the affected rows by the most recent query.  
+
Get the number of affected rows for the previous executed SQL statement.  
  
 
{{Description:JDatabase::getAffectedRows}}
 
{{Description:JDatabase::getAffectedRows}}
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JDatabase::getAffectedRows|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JDatabase::getAffectedRows|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|1.0.5 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JDatabase->getAffectedRows ()
+
public function getAffectedRows ()
 
</source>
 
</source>
===Returns===
+
* '''Returns''' integer The number of affected rows.
int The number of affected rows in the previous operation
+
* '''Defined''' on line 1132 of libraries/joomla/database/database.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/database/database.php
 
===Referenced by===
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JDatabase::getAffectedRows source code''' on [[jplatform:database/database.php#cl-1124|BitBucket]]
 +
* {{JVer|11.1}} Class [[API17:JDatabase|JDatabase]]
 +
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]]
 +
* [[API17:JDatabase::getAffectedRows|Other versions of JDatabase::getAffectedRows]]
 +
{{SeeAlso:JDatabase::getAffectedRows}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDatabase::getAffectedRows|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JDatabase::getAffectedRows|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JDatabase/11.1|JDatabase]]
+
===User contributed notes===
* [[JDatabase::getAffectedRows|Other versions of this method]]
 
{{SeeAlso:JDatabase::getAffectedRows}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 34: Line 31:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JDatabase]][[Category:JDatabase::getAffectedRows]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Revision as of 20:01, 11 May 2013

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JDatabase::getAffectedRows[edit]

Description[edit]

Get the number of affected rows for the previous executed SQL statement.

Template:Description:JDatabase::getAffectedRows [Edit Descripton]

public function getAffectedRows ()
  • Returns integer The number of affected rows.
  • Defined on line 1132 of libraries/joomla/database/database.php
  • Since Joomla 11.1

See also[edit]

Template:SeeAlso:JDatabase::getAffectedRows [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />