JDatabaseMySQL::fetchAssoc: Difference between revisions
From Joomla! Documentation
m →See also: moving preparation |
m clean up |
||
| Line 4: | Line 4: | ||
Method to fetch a row from the result set cursor as an associative array. | Method to fetch a row from the result set cursor as an associative array. | ||
{{Description:JDatabaseMySQL::fetchAssoc}} | {{subst:Description:JDatabaseMySQL::fetchAssoc}} | ||
<source lang="php"> | <source lang="php"> | ||
protected function fetchAssoc ($cursor=null) | protected function fetchAssoc ($cursor=null) | ||
| Line 32: | Line 30: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]] | ||
* [[API17:JDatabaseMySQL::fetchAssoc|Other versions of JDatabaseMySQL::fetchAssoc]] | * [[API17:JDatabaseMySQL::fetchAssoc|Other versions of JDatabaseMySQL::fetchAssoc]] | ||
{{SeeAlso:JDatabaseMySQL::fetchAssoc}} | {{subst:SeeAlso:JDatabaseMySQL::fetchAssoc}} | ||
===User contributed notes=== | ===User contributed notes=== | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
Revision as of 15:03, 24 March 2017
JDatabaseMySQL::fetchAssoc
Description
Method to fetch a row from the result set cursor as an associative array.
{{subst:Description:JDatabaseMySQL::fetchAssoc}}
protected function fetchAssoc ($cursor=null)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $cursor | mixed | null | The optional result set cursor from which to fetch the row. |
- Returns mixed Either the next row from the result set or false if there are no more rows.
- Defined on line 603 of libraries/joomla/database/database/mysql.php
- Since

See also
JDatabaseMySQL::fetchAssoc source code on BitBucket
Class JDatabaseMySQL
Subpackage Database- Other versions of JDatabaseMySQL::fetchAssoc
{{subst:SeeAlso:JDatabaseMySQL::fetchAssoc}}
User contributed notes
<CodeExamplesForm />