[TYPO3-english] t3lib sql_insert_id()
Francisco Cifuentes
francisco.cifuentes.silva at gmail.com
Tue Mar 17 16:00:08 CET 2009
Hi everybody,
You could try using this:
*$GLOBALS['TYPO3_DB']->sql_insert_id();
*
**
Regards,
Francisco.
________________________
Francisco A. Cifuentes Silva
Ingeniero de Proyectos
Instituto de Informática Educativa
Universidad de la Frontera
Temuco, Chile
Tel: +56 45 325277
Fax: +56 45 325263
http://www.iie.ufro.cl
2009/3/17 Marcel Remmy <marcel.remmy at fh-kl.de>
> Hey there,
>
> can somenone help me with this?
>
> In an extension I am developing, it's important to know which UID is
> used for the new inserted element (be_groups / be_users dependencies
> which are set automatically)
>
> So I tried to use this function t3lib_sqlengine::sql_insert_id() that
> should exactly this. It's placed right after the SQL INSERT command, as
> recommended. But it just does not return the value.
>
> Have you experience with this? I mean, getting the MAX(uid)+1 value is
> definetly not the right way ;)
>
> best wishes,
>
> Marcel
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list