API17:JDatabase::loadAssocList
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 2: | Line 2: | ||
=={{JVer|11.1}} JDatabase::loadAssocList== | =={{JVer|11.1}} JDatabase::loadAssocList== | ||
===Description=== | ===Description=== | ||
| − | + | Method to get an array of the result set rows from the database query where each row is an associative array of ['field_name' => 'row_value']. | |
{{Description:JDatabase::loadAssocList}} | {{Description:JDatabase::loadAssocList}} | ||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JDatabase::loadAssocList|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JDatabase::loadAssocList|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public | + | public function loadAssocList ( |
| + | $key=null | ||
| + | $column=null | ||
| + | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 20: | Line 22: | ||
|- | |- | ||
|$key | |$key | ||
| − | | | + | | |
|null | |null | ||
| − | | | + | | |
|- | |- | ||
|$column | |$column | ||
| − | | | + | | |
|null | |null | ||
| − | | | + | | |
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' | |
| − | + | * '''Defined''' on line 573 of libraries/joomla/database/database.php | |
| − | + | ||
| − | libraries/joomla/database/database.php | + | |
| − | + | ||
| − | + | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JDatabase::loadAssocList source code''' on [[jplatform:database/database.php#cl-565|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JDatabase/11.1|JDatabase]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Database/11.1|Database]] | ||
| + | * [[JDatabase::loadAssocList|Other versions of JDatabase::loadAssocList]] | ||
| + | {{SeeAlso:JDatabase::loadAssocList}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JDatabase::loadAssocList|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JDatabase::loadAssocList|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 51: | Line 51: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JDatabase]][[Category:JDatabase::loadAssocList]]</noinclude> | <noinclude>[[Category:JDatabase]][[Category:JDatabase::loadAssocList]]</noinclude> | ||
Revision as of 20:26, 27 April 2011
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JDatabase::loadAssocList
Description
Method to get an array of the result set rows from the database query where each row is an associative array of ['field_name' => 'row_value'].
Description:JDatabase::loadAssocList [Edit Descripton]
public function loadAssocList ( $key=null $column=null )
| Parameter | Type | Default | Description |
|---|---|---|---|
| $key | null | ||
| $column | null |
- Returns
- Defined on line 573 of libraries/joomla/database/database.php
See also
-
JDatabase::loadAssocList source code on BitBucket
-
Class JDatabase
-
Subpackage Database
- Other versions of JDatabase::loadAssocList
SeeAlso:JDatabase::loadAssocList [Edit See Also]
User contributed notes
<CodeExamplesForm />
