I have a bit of code that allows a store owner to upload proofs for the customer to view. The customer can leave comments on each proof and the owner can respond.
What I would like to do is have an "Approve this proof" link next to each image, which the customer can click on to approve the uploaded proof.
I've created an 'approved' field in the table and plan to have this set to 0 or 1. Each proof has a unique ID 'proofId'.
Once the 'approve' has been set to 1, I'd just like to create a bit of conditional text to have 'APPROVED' appear or not, and a bit of text in the admin side that says "Proof Approved: ['proofId']". I think I can do this, but I don't know how to change the value in the database first. How should the link be structured? Does it need to be a form?
Again, I'm sorry for the inanity of this question