Hi everybody!
Could you teach me how to get back the “primary key”: (“id”), from an “insert query”?
*
<cffunction name="insertData" access="public">
<cfargument name="formData" type="struct" required="yes">
<cfquery name="qInsert" datasource="mydata">
INSERT INTO mytable
(email, firstname, name)
VALUES
('#formData.email#', '#formData.firstname#', '#formData.name#')
</cfquery>
</cffunction>
*
How could I get back the primary key:”id” and send it to another page? (MySQL)
Thanks a lot!