API17:JDatabase::loadAssocList
From Joomla! Documentation
(Difference between revisions)
(Bulk upload by Doxiki2) |
(Layout updates) |
||
| Line 10: | Line 10: | ||
===Synopsis=== | ===Synopsis=== | ||
<source lang="php"> | <source lang="php"> | ||
| − | public | + | public JDatabase::loadAssocList ($key=null, $column=null) |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 33: | Line 33: | ||
array If key is empty as sequential list of returned records. | array If key is empty as sequential list of returned records. | ||
===Defined in=== | ===Defined in=== | ||
| − | libraries/joomla/database/database.php | + | libraries/joomla/database/database.php (line 670) |
| + | * see source code in [[jplatform:database/database.php#cl-670|BitBucket]] | ||
===Referenced by=== | ===Referenced by=== | ||
===See also=== | ===See also=== | ||
Revision as of 20:11, 23 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
Load a associactive list of database rows.
Description:JDatabase::loadAssocList [Edit Descripton]
Synopsis
public JDatabase::loadAssocList ($key=null, $column=null)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $key | string | null | The field name of a primary key |
| $column | string | null | An optional column name. Instead of the whole row, only this column value will be in the return array. |
Returns
array If key is empty as sequential list of returned records.
Defined in
libraries/joomla/database/database.php (line 670)
- see source code in BitBucket
Referenced by
See also
SeeAlso:JDatabase::loadAssocList
Examples
<CodeExamplesForm />
