[TYPO3-core] RFC #11050: Add TYPO3_DB->exec_SELECTgetField() function

Stefan Geith typo3dev2008.nospam1 at geithware.de
Fri May 8 09:35:11 CEST 2009


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.

-- 
Stefan Geith
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0011050-exec_SELECTgetField.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090508/35e0fe81/attachment.txt 


More information about the TYPO3-team-core mailing list