[TYPO3-english] t3lib sql_insert_id()
Marcel Remmy
marcel.remmy at fh-kl.de
Tue Mar 17 13:07:40 CET 2009
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
More information about the TYPO3-english
mailing list