PerchDB class example
I'm looking for an example of how to build a callback page (server side) which updates a single value in ‘imageDynamicFields’ (perch2_gallery_images table) using the PerchDB class? (I’m stuck on how to actually use the API or misunderstanding the requirement for a custom app to do this).
Essentially I just want to mark an existing image checkbox as 'sold' so that an 'image' can't be bought twice. The function will simply be called via an ajax post request after paypal payment completes on gallery image.php. Figured the best way to do this was dive into the API but I'm struggling with tests thus far.
(Sadly not using Shop app due to pre-existing Gallery App requirement).
Many thanks Chris