I am using a form that collects variables and adds the variables to a table. My query looks like this:
$query= "REPLACE INTO featuredlistings (Idf,picture_name
,picture2_name,picture3_name,picture4_name) VALUES ('$Idf','$picture_name','$picture2_name',
'$picture3_name','$picture4_name')";
I am trying to code this so that the following scenerio works.
User goes to form and fills in the info for Idf,picture_name
,picture2_name,picture3_name, and picture4_name.
Later, lets say they decide to change picture3_name. I would like it so that they go back to this same form and input the Idf (which is set as unique) and new data for picture3_name and the table ONLY updates picture3_name. Currently, it replaces picture3_name but also deletes the other picture fields.
Any ideas?