Thanks, Barney. That's perfect.
Bob
> <cffunction name="mysql_insert_id()">
> <cfset var get = "" />
> <cfquery datasource="#variables.my.dsn#" name="get">
> SELECT LAST_INSERT_ID() AS id
> </cfquery>
> <cfreturn get.id />
> </cffunction>
>
> You'll want to call this function from within a transaction with your
> other queries to ensure it gives you the right result. PHP doesn't
> have this requirement, because in PHP you manage your own connections,
>
> but in CF they are managed in a pool by CF itself.
>
> cheers,
> barneyb
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208776
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54