API16

JDatabase/loadAssocList

From Joomla! Documentation

< API16:JDatabase

The "API16" 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.

Description[edit]

Load a associactive list of database rows


<! removed transcluded page call, red link never existed >

Syntax[edit]

loadAssocList($key=null, $column=null)
Parameter Name Default Value Description
$key null The field name of a primary key
$column null An optional column name. Instead of the whole row, only this column value will be in the return array.

Returns[edit]

array If key is empty as sequential list of returned records.

Defined in[edit]

libraries/joomla/database/database.php

Importing[edit]

jimport( 'joomla.database.database' );

Source Body[edit]


<! removed transcluded page call, red link never existed >

Examples[edit]

Code Examples[edit]