Checkbox help needed! - database inserting and updating
I am using CF8 and MySQL. I have a query that is returning a list of products. The query I have written returns a list of products each with a checkbox and a input text field for price.
I need to be able to insert the record into another table called specials and also be able to update it if necessary, If it's checked it gets inserted and updated. thus if i go back and do an update I can see which items were checked and the corresponding prices.
I need help writing the insert and update queries. Any help would be much appreciated, Thanks in advance. Below is the form.
<cfoutput query="getProducts">
<tr<cfif currentrow mod 2> class="odd"</cfif>>
<td><div align="left"><input type="checkbox" name="OrderCompleted" value="##"></div></td>
<td>#getProducts.modelnumber#</td>
<td>#getProducts.modeldescription#</td>
<td>#getProducts.categoryidparent#</td>
<td>#getProducts.categoryname#</td>
<td><input type="text" name="price" value=""></td>
</tr>
</cfoutput>
