I have a content table where for certain rows not all fields are used. In the update form I use PHP if statements in order to display or not display certain fields. Now I am wondering how to handle the updat query in case the formfield is not present in the form and the other way arround. For example: Certain pages have two text blocks (content1 & content2) but other don’t use these fields in the databaee at all. But still I would like to be able to use the same update query for all rows. How would the update query look like?
I hope this makes any sense.
Anyway thank you in advance