This document provides tips for using the cfquery result attribute and handling record updates and inserts. It discusses:
1. Checking for a record's existence using a SELECT query before updating or inserting. If the record exists, it updates the table; if not, it inserts a new record.
2. Wrapping the update/insert logic in a cftransaction to handle errors. It first tries to update the record, then checks if no records were updated and inserts if needed.
3. Creating a custom tag to dump error details to PDF for easier debugging of CFC methods wrapped in cftry/cfcatch without needing email configuration. The tag dumps variable content or a cfdump to a PDF in