programmher
Programmer
I have a CF variable named #number#.
I want to update a SQL DB field named "record" to the value of #number#.
I have attempted the below update query:
<cfquery name="Renumber" datasourceMyDatabase>
UPDATE dbo.Inventory
SET record = #form.number#
WHERE inventory_item= #Inventory_item#
</cfquery
I am trying to re-set the record numbers on my database to match the counted line items on my web form.
(Ex. - Item number InvItem RecordNum
1 laptops 1
2 keyboards 3
3 mousepads 4
I want the "keyboard" item to show a recorNum of 2 instead of 3. The SQL db datatype is a tinyint.
My query does not work. Using a <cfset> does not work.
What am I missing?!?!?
I want to update a SQL DB field named "record" to the value of #number#.
I have attempted the below update query:
<cfquery name="Renumber" datasourceMyDatabase>
UPDATE dbo.Inventory
SET record = #form.number#
WHERE inventory_item= #Inventory_item#
</cfquery
I am trying to re-set the record numbers on my database to match the counted line items on my web form.
(Ex. - Item number InvItem RecordNum
1 laptops 1
2 keyboards 3
3 mousepads 4
I want the "keyboard" item to show a recorNum of 2 instead of 3. The SQL db datatype is a tinyint.
My query does not work. Using a <cfset> does not work.
What am I missing?!?!?