What you can do is try using <cfloop> to insert, update
and delete your information.
For instance deleting the information try this.
<!---- Delete Jobs---->
<cfloop index="JobIDs" list="#Job_ID#" delimiters=",">
<cfquery name="delteall" datasource="dbsource">
DELETE
FROM table
Where job_Id = #JobIDs#
</cfquery>
</cfloop>
Do the same for your inserting and updating.
Because what CF see is job_id = 1,2,3,4,5,6,7,8,9
SO you are looping over a list = #job_id# and delimiter is "
, " and we are calling the index JobIDs. JobIDs are the values - 1
2 3 4 5 6 ....
I hope this helps. As for the displaying of the images, use
if then statements:
<cfif isdefined("edittable") and edittable eq '"y">
Then display the query and outputs for the editing options
<cfelseif isdefined("deletetable") and addtable eq "y">
The dispaly the query and outputs for adding options
<cfelse>
Then display the query for outputing the delete options
</cfif>
So your link will have soemthing of this sort <a
href="samepage.cfm?deletetable=y">Add Table</a>
Hope this helps,
Sevor Klu