
February 20th, 2004, 11:21 AM
|
|
Moderator
|
|
Join Date: Jun 2002
Location: Raleigh, NC
|
|
First, you don't have to manually build up a variable to hold the id and token. CF generates one already, called "session.urltoken". So in all your links and form posts, you do:
<a href="sompage.cfm?#session.urltoken#">link</a>
Next, as far as I can tell this is just wrong:
Quote: <cfquery database="#application.ds#>
Update ordernumbers
SET orderno=#orderno#
Company=#orderno#
</cfquery> |
Without a WHERE clause, this will update ALL rows in your table. And I guess I'm still unclear what you are trying to do. Do you want to insert the newest id and company into the odernumbers table?
|