[TYPO3-dev] dreaded newbie question
Stefan Kreisberg
stefan at nospam-linkfactory.dk
Fri Mar 30 15:12:24 CEST 2007
LucitherCom wrote:
> hello there,
>
> maybe i'm to dumb or i can't read english anymore.
>
> i want to use the identity, more precisely his UID,or a function that
> will give me that, of the loggedin FEuser for a query in my
> extension:
>
>
> $res=$GLOBALS["TYPO3_DB"]->exec_SELECTquery("*","my_table","deleted =
> 0 AND hidden = 0 AND pid='".$toPageId."'AND userid=".$userid."");
> $row=$GLOBALS["TYPO3_DB"]->sql_fetch_assoc($res);
>
> i just don't know where to get that said userid.could anyone point me
> in the right direction, please?
Could it be
$GLOBALS['TSFE']->fe_user->user['uid']
You are looking for?
:-)
> i haven't found anything concerning FE
> users in the Core API doc or inside typo3 that is addressing my
> problem :(
>
> thanks :)
>
>
>
--
vh Stefan Kreisberg, a.k.a. Strato
***********************************
Confession is good for the soul only in the sense that a tweed coat is
good for dandruff.
-- Peter de Vries
More information about the TYPO3-dev
mailing list