Question
Adding an extra column
My query will produce three records, so I output/display them
in a table :
<cfoutput query="qry">
<tr>
<td>#line_item#</td><td>#part_number#</td><td>#requestor#</td>
</tr>
</cfoutput>
What I need to do is add an extra column to the end of each record, to enter comments :
<td><input type="text" name="comments" size="50" maxlength="50"></td> so the new row will look like :
<td>#line_item#</td><td>#part_number#</td><td>#requestor#</td><td><input type="text" name="comments" size="50" maxlength="50"></td>
When the user enters the comments and submits the form, I want to insert the line_item, part_number, requestor, and comments into another table.
My question is how do I associate each comments text with the existing corresponding record ?
<cfoutput query="qry">
<tr>
<td>#line_item#</td><td>#part_number#</td><td>#requestor#</td>
</tr>
</cfoutput>
What I need to do is add an extra column to the end of each record, to enter comments :
<td><input type="text" name="comments" size="50" maxlength="50"></td> so the new row will look like :
<td>#line_item#</td><td>#part_number#</td><td>#requestor#</td><td><input type="text" name="comments" size="50" maxlength="50"></td>
When the user enters the comments and submits the form, I want to insert the line_item, part_number, requestor, and comments into another table.
My question is how do I associate each comments text with the existing corresponding record ?
