Difference between revisions of "JDatabase::getNumRows"
From Joomla! Documentation
m (JoomlaWikiBot moved page JDatabase::getNumRows/11.1 to API17:JDatabase::getNumRows without leaving a redirect: Robot: Moved page) |
m (preparing for archive only) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
Get the number of returned rows for the previous executed SQL statement. | Get the number of returned rows for the previous executed SQL statement. | ||
− | + | ||
− | + | ||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
public function getNumRows ($cursor=null) | public function getNumRows ($cursor=null) | ||
Line 29: | Line 27: | ||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JDatabase::getNumRows source code''' on [[jplatform:database/database.php#cl-1156|BitBucket]] | * {{JVer|11.1}} '''JDatabase::getNumRows source code''' on [[jplatform:database/database.php#cl-1156|BitBucket]] | ||
− | * {{JVer|11.1}} Class [[JDatabase | + | * {{JVer|11.1}} Class [[API17:JDatabase|JDatabase]] |
− | * {{JVer|11.1}} Subpackage [[Subpackage_Database | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]] |
− | * [[JDatabase::getNumRows|Other versions of JDatabase::getNumRows]] | + | * [[API17:JDatabase::getNumRows|Other versions of JDatabase::getNumRows]] |
− | + | ||
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JDatabase::getNumRows | category=JDatabase::getNumRows | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Line 47: | Line 43: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 21:33, 24 March 2017
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.
JDatabase::getNumRows[edit]
Description[edit]
Get the number of returned rows for the previous executed SQL statement.
public function getNumRows ($cursor=null)
Parameter | Type | Default | Description |
---|---|---|---|
$cursor | resource | null | An optional database cursor resource to extract the row count from. |
- Returns integer The number of returned rows.
- Defined on line 1164 of libraries/joomla/database/database.php
- Since
See also[edit]
- JDatabase::getNumRows source code on BitBucket
- Class JDatabase
- Subpackage Database
- Other versions of JDatabase::getNumRows
User contributed notes[edit]
Code Examples[edit]