[TYPO3-core] RFC #11050: Add TYPO3_DB->exec_SELECTgetField() function
Stefan Geith
typo3dev2008.nospam1 at geithware.de
Tue Aug 4 09:26:30 CEST 2009
REMINDER
Stefan Geith schrieb:
> Hi,
>
> This is a SVN patch request.
>
> Type: Feature
>
> Branches: trunk
>
> BT reference: http://bugs.typo3.org/view.php?id=11050
>
>
> Description:
> We often need to read associative arrays from the database that contains
> only _one_ field from the table e.g. uid=>title oder even only a uid-list.
>
> This could be done with a new function exec_SELECTgetField() in TYPO3_DB.
>
>
> Additional Information:
> This is useful e.g. for:
> - getting an array with Kategorie-Names for a given Category-UID
> - or the other way round for getting UIDs for a given Category-Name
> - getting an array with UIDs only, that can be processed further by e.g.
> implode() etc.
> I need this very often ...
>
>
> Note:
> Patch attached.
>
More information about the TYPO3-team-core
mailing list