JDatabaseMySQL::fetchAssoc: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| 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. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 30: | 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]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JDatabaseMySQL::fetchAssoc | category=JDatabaseMySQL::fetchAssoc | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 02:37, 25 March 2017
JDatabaseMySQL::fetchAssoc
Description
Method to fetch a row from the result set cursor as an associative array.
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
User contributed notes
Code Examples